Generates random vertices inside a 3d sphere.
Namespace:
ceometric.ComputationalGeometry
Assembly:
ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function RandomOnSphere ( _
numberOfVertices As Integer, _
radius As Double _
) As PointSet |
| Visual C++ |
|---|
public:
static PointSet^ RandomOnSphere(
int numberOfVertices,
double radius
) |
Return Value
Returns a 3d set of points in the form of a sphere. The points lie on the surface
of the sphere. The center of the sphere is (0,0,0).
See Also