Generates the four corner vertices of a rectangle.

Namespace:  ceometric.ComputationalGeometry
Assembly:  ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)

Syntax

C#
public static PointSet Rectangle(
	double length,
	double width
)
Visual Basic (Declaration)
Public Shared Function Rectangle ( _
	length As Double, _
	width As Double _
) As PointSet
Visual C++
public:
static PointSet^ Rectangle(
	double length, 
	double width
)

Parameters

length
Type: System..::.Double
The side length in x-direction.
width
Type: System..::.Double
The side length in y-direction.

Return Value

Returns a rectangle consisting of its four corner vertices. The center is at (0,0,0).

See Also