| GeometryHelperCreateBoundingShape Method |
Computes a minimum bounding shape that contains all given points.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static Shape CreateBoundingShape(
IList<Vector3F> points
)
Public Shared Function CreateBoundingShape (
points As IList(Of Vector3F)
) As Shape
public:
static Shape^ CreateBoundingShape(
IList<Vector3F>^ points
)
static member CreateBoundingShape :
points : IList<Vector3F> -> Shape
Parameters
- points
- Type: System.Collections.GenericIListVector3F
The points.
Return Value
Type:
ShapeA minimum bounding shape that contains all given points.
Exceptions Remarks
The returned shape will be a
SphereShape, a
CapsuleShape,
a
BoxShape, or a
TransformedShape (containing a sphere, capsule,
or a box). The bounding shape is not guaranteed to be optimal, it is only guaranteed that
the bounding shape includes all given points.
See Also