Class BoundingExtensions
- Namespace
- OmegaEngine.Graphics.Renderables
- Assembly
- OmegaEngine.dll
Provides extension methods for SlimDX.BoundingBox and SlimDX.BoundingSphere.
public static class BoundingExtensions
- Inheritance
-
BoundingExtensions
- Inherited Members
Methods
Transform(BoundingBox, Matrix)
Applies a matrix transform to a bounding box.
[Pure]
public static BoundingBox Transform(this BoundingBox box, Matrix matrix)
Parameters
box
BoundingBoxThe bounding box to apply the transform to.
matrix
MatrixThe transformation matrix to apply.
Returns
- BoundingBox
The transformed bounding box.
Transform(BoundingSphere, Matrix)
Applies a matrix transform to a bounding sphere.
[Pure]
public static BoundingSphere Transform(this BoundingSphere sphere, Matrix matrix)
Parameters
sphere
BoundingSphereThe bounding sphere to apply the transform to.
matrix
MatrixThe transformation matrix to apply.
Returns
- BoundingSphere
The transformed bounding sphere.