Click or drag to resize
DigitalRuneConvexShapeGetSupportPoint Method (Vector3F, Vector3F)
Gets a support point for a given direction and a given non-uniform scaling.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public Vector3F GetSupportPoint(
	Vector3F direction,
	Vector3F scale
)

Parameters

direction
Type: DigitalRune.Mathematics.AlgebraVector3F
The direction for which to get the support point on the scaled shape. The vector does not need to be normalized. The result is undefined if the vector is a zero vector.
scale
Type: DigitalRune.Mathematics.AlgebraVector3F
The scale that is applied to the shape. This can be a non-uniform 3D scaling.

Return Value

Type: Vector3F
A support point regarding the given direction on the scaled shape.
Remarks

A support point regarding a direction is an extreme point of the shape that is furthest away from the center regarding the given direction. This point is not necessarily unique.

If only a uniform scale should be applied, it is faster to call GetSupportPoint(Vector3F) or GetSupportPointNormalized(Vector3F) and scale the resulting support point position.

See Also