From: David Serby <dserby@vi...> - 2002-02-26 12:48:58
why is it not possible to change the ellipse parameters (cx, cy, phi,
width, height) after construction. Is there any reason why there is no
setting-function like set_ellipse_parameters(cx, cy, phi, width, height)?
I need an ellipse whose parameters can be changed after construction
because I'd like to update them.
From: Peter Vanroose <Peter.V<anroose@es...> - 2002-02-26 18:31:42
> I need an ellipse whose parameters can be changed after construction
> because I'd like to update them.
vsol_conic_2d now has two extra methods:
set_central_parameters and set_parabola_parameters.
The former sets the midpoint, main axes lengths and direction of main
axis of an ellipse (if both lenghts are positive) or hyperbola,
the latter sets symmetry axis, top and excentricity of a parabola.
The arguments they take are identical to those taken by the
corresponding constructors, and should be identical to the
parameters returned by the ellipse_parameters, hyperbola_parameters
and parabola_parameters methods.
P.S. Note that there is (and has been for quite some time) an error in
hyperbola_parameters; The added test in test_vsol_conic fails on this.
Get latest updates about Open Source Projects, Conferences and News.