Constructor Sphere
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Sphere(Vector3, float)
Initializes a new instance of the Box3D.Sphere struct.
public Sphere(Vector3 center, float radius)Parameters
Exceptions
- ArgumentOutOfRangeException
-
radiusis not positive.
Sphere(float)
Initializes a new instance centred on the body origin.
public Sphere(float radius)Parameters
radiusfloat-
The radius. Must be positive.
Exceptions
- ArgumentOutOfRangeException
-
radiusis not positive.