Table of Contents

Class FixedBoundsUnityExtensions

Provides endpoint-preserving conversions between Unity Bounds and FixedMathSharp bounds.

public static class FixedBoundsUnityExtensions
Inheritance
FixedBoundsUnityExtensions
Inherited Members

Methods

ToBounds(FixedBoundBox)

Converts a FixedMathSharp 3D bound box to Unity Bounds using its minimum and maximum endpoints.

public static Bounds ToBounds(this FixedBoundBox box)

Parameters

box FixedBoundBox

Returns

Bounds

ToBoundsXZ(FixedBoundArea, float)

Converts a 2D bound area to zero-height Unity Bounds on the XZ plane.

public static Bounds ToBoundsXZ(this FixedBoundArea area, float y = 0)

Parameters

area FixedBoundArea

The area whose X and Y components map to Unity X and Z.

y float

The Unity Y coordinate for both bounds endpoints.

Returns

Bounds

Unity Bounds spanning the area on the XZ plane.

ToFixedBoundAreaXZ(Bounds)

Projects the XZ endpoints of Unity Bounds into a FixedMathSharp 2D bound area.

public static FixedBoundArea ToFixedBoundAreaXZ(this Bounds bounds)

Parameters

bounds Bounds

Returns

FixedBoundArea

ToFixedBoundBox(Bounds)

Converts Unity Bounds to a FixedMathSharp 3D bound box using its minimum and maximum endpoints.

public static FixedBoundBox ToFixedBoundBox(this Bounds bounds)

Parameters

bounds Bounds

Returns

FixedBoundBox