Table of Contents

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 BoundingBox

The bounding box to apply the transform to.

matrix Matrix

The 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 BoundingSphere

The bounding sphere to apply the transform to.

matrix Matrix

The transformation matrix to apply.

Returns

BoundingSphere

The transformed bounding sphere.