Generates random vertices on the perimeter of a rectangle in the XY-plane.

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

Syntax

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

Parameters

numberOfVertices
Type: System..::.Int32
The number of random points in the set.
length
Type: System..::.Double
The side length in x-direction.
width
Type: System..::.Double
The side length in y-direction.

Return Value

Returns a planar set of points in the form of a rectangle in the XY-plane. The points lie on the perimeter of the rectangle. The center is at (0,0,0).

See Also