| TriangleShapeGetAabb Method (Vector3F, Pose) |
Computes the axis-aligned bounding box (AABB) for this shape positioned in world space using
the given scale and
Pose.
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public override Aabb GetAabb(
Vector3F scale,
Pose pose
)
Public Overrides Function GetAabb (
scale As Vector3F,
pose As Pose
) As Aabb
public:
virtual Aabb GetAabb(
Vector3F scale,
Pose pose
) override
abstract GetAabb :
scale : Vector3F *
pose : Pose -> Aabb
override GetAabb :
scale : Vector3F *
pose : Pose -> Aabb
Parameters
- scale
- Type: DigitalRune.Mathematics.AlgebraVector3F
The scale factor by which the shape should be scaled. The scaling is applied in the shape's
local space before the pose is applied.
- pose
- Type: DigitalRune.GeometryPose
The Pose of the shape. This pose defines how the shape should be positioned in
world space.
Return Value
Type:
AabbThe AABB of the shape positioned in world space.
Remarks
The AABB is axis-aligned to the axes of the world space (or the parent coordinate space).
The default implementation in ConvexShape uses the support mapping to compute
the AABB. Often the AABB can be computed more efficiently; in such cases this method should
be overridden in derived classes.
See Also