Click or drag to resize
DigitalRuneCapsuleShape Constructor (Single, Single)
Initializes a new instance of the CapsuleShape class with the given radius and height.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public CapsuleShape(
	float radius,
	float height
)

Parameters

radius
Type: SystemSingle
The radius.
height
Type: SystemSingle
The height (including the spherical caps).
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionheight is less than 2 * Radius. (The height must be greater than or equal to 2 * radius.)
ArgumentOutOfRangeExceptionradius is negative.
See Also