Class FixedBoundsUnityExtensions
- Namespace
- FixedMathSharp.Geometry
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
boxFixedBoundBox
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
areaFixedBoundAreaThe area whose X and Y components map to Unity X and Z.
yfloatThe 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
boundsBounds
Returns
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
boundsBounds