Generates random vertices inside a circle 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 RandomInCircle(
	int numberOfVertices,
	double radius
)
Visual Basic (Declaration)
Public Shared Function RandomInCircle ( _
	numberOfVertices As Integer, _
	radius As Double _
) As PointSet
Visual C++
public:
static PointSet^ RandomInCircle(
	int numberOfVertices, 
	double radius
)

Parameters

numberOfVertices
Type: System..::.Int32
The number of random points in the set.
radius
Type: System..::.Double
The radius of the circle.

Return Value

Returns a planar set of points in the form of a circle in the XY-plane. The points lie inside or on the circumference of the circle. The center is at (0,0,0).

See Also