Generates eight corner vertices of a cube.

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

Syntax

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

Parameters

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

Return Value

Returns the eight corner vertices of a cube. The center is at (0,0,0).

See Also