| GeometryHelperComputeBoundingCapsule Method |
Computes a tight-fitting capsule that contains the given points.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static void ComputeBoundingCapsule(
IList<Vector3F> points,
out float radius,
out float height,
out Pose pose
)
Public Shared Sub ComputeBoundingCapsule (
points As IList(Of Vector3F),
<OutAttribute> ByRef radius As Single,
<OutAttribute> ByRef height As Single,
<OutAttribute> ByRef pose As Pose
)
public:
static void ComputeBoundingCapsule(
IList<Vector3F>^ points,
[OutAttribute] float% radius,
[OutAttribute] float% height,
[OutAttribute] Pose% pose
)
static member ComputeBoundingCapsule :
points : IList<Vector3F> *
radius : float32 byref *
height : float32 byref *
pose : Pose byref -> unit
Parameters
- points
- Type: System.Collections.GenericIListVector3F
The points. - radius
- Type: SystemSingle
The radius of the capsule. - height
- Type: SystemSingle
The height of the capsule. - pose
- Type: DigitalRune.GeometryPose
The pose of the capsule.
Exceptions Remarks
The computed capsule is an approximation. Capsules work best for long objects.
See Also