Creates a
Rectangle
in the x-z plane, centered at the origin, with width == aaxis_h (in the + or - x direction), and height == aaxis_v (in the + or - z direction). If one or more of the arguments angle_x, angle_y, or angle_z are used, it is rotated by those amounts around the appropriate axes. Finally, theRectangle
is shifted such that its center lies at ccenter.Point C(-1, -1, 1); Rectangle r(C, 3, 4, 30, 30, 30);
![]()
Fig. 151.
Corresponds to the constructor described above.
Creates
Rectangle
using fourPoint
arguments. The order of the arguments must correspond with a path around theRectangle
.This function does not currently check that the arguments yield a valid
Rectangle
, therefore all code using it must ensure that they do.
Corresponds to the constructor above.
Pseudo-constructors for dynamic allocation of
Rectangles
. They create aRectangle
on the free store and allocate memory for it usingnew(Rectangle)
. They return a pointer to the newRectangle
.If r is a non-zero pointer or a reference, the new
Rectangle
will be a copy of r. If the new object is not meant to be a copy of an existing one, ‘0’ must be passed tocreate_new<Rectangle>()
as its argument. See Dynamic Allocation of Shapes, for more information.