Class SupportPrimitives
Provides built-in primitive support-mapped query types and helper methods for constructing them.
public static class SupportPrimitives
- Inheritance
-
SupportPrimitives
- Inherited Members
Methods
CreateBox(JVector)
Creates a box support primitive.
public static SupportPrimitives.Box CreateBox(JVector halfExtents)
Parameters
halfExtentsJVectorThe positive half-extents of the box.
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when any component of
halfExtentsis less than or equal to zero or not finite.
CreateCapsule(float, float)
Creates a capsule support primitive whose symmetry axis is the Y-axis.
public static SupportPrimitives.Capsule CreateCapsule(float radius, float halfLength)
Parameters
radiusfloatThe capsule radius.
halfLengthfloatThe non-negative half-length of the capsule segment.
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when
radiusis less than or equal to zero, whenhalfLengthis negative, or when either value is not finite.
CreateCone(float, float)
Creates a cone support primitive whose symmetry axis is the Y-axis.
public static SupportPrimitives.Cone CreateCone(float radius, float height)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when
radiusorheightis less than or equal to zero or not finite.
CreateCylinder(float, float)
Creates a cylinder support primitive whose symmetry axis is the Y-axis.
public static SupportPrimitives.Cylinder CreateCylinder(float radius, float halfHeight)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when
radiusorhalfHeightis less than or equal to zero or not finite.
CreatePoint()
Creates a point support primitive at the origin.
public static SupportPrimitives.Point CreatePoint()
Returns
CreateSphere(float)
Creates a sphere support primitive.
public static SupportPrimitives.Sphere CreateSphere(float radius)
Parameters
radiusfloatThe sphere radius.
Returns
Exceptions
- ArgumentOutOfRangeException
Thrown when
radiusis less than or equal to zero or not finite.