Creates an
Ellipse
in the x-z plane, centered at the origin, with its horizontal axis == aaxis_h and its vertical axis == aaxis_v. If any of the arguments angle_x, angle_y, or angle_z is non-zero, theEllipse
is rotated about the x, y, and z-axis in that order, by the amounts indicated by the corresponding arguments. Finally, theEllipse
is shifted such that its center comes to lie at ccenter.Ellipse e(origin, 6, 4); e.draw();
![]()
Fig. 159.
Point P(1, 1, 1); Ellipse e(P, 6, 4, 15, 12, 11); e.draw();
![]()
Fig. 160.
Corresponds to the constructor above.
Pseudo-constructors for dynamic allocation of
Ellipses
. They create aEllipse
on the free store and allocate memory for it usingnew(Ellipse)
. They return a pointer to the newEllipse
.If e is a non-zero pointer or a reference, the new
Ellipse
will be a copy of e. If the new object is not meant to be a copy of an existing one, ‘0’ must be passed tocreate_new<Ellipse>()
as its argument. See Dynamic Allocation of Shapes, for more information.