Method GetBounds
GetBounds<T>(T)
Calculate the bounding box of a Spline.
Declaration
public static Bounds GetBounds<T>(this T spline) where T : ISpline
Parameters
Type | Name | Description |
---|---|---|
T | spline | The spline for which to calculate bounds. |
Returns
Type | Description |
---|---|
Bounds | The bounds of a spline. |
Type Parameters
Name | Description |
---|---|
T | A type implementing ISpline. |
GetBounds<T>(T, float4x4)
Creates a bounding box for a spline.
Declaration
public static Bounds GetBounds<T>(this T spline, float4x4 transform) where T : ISpline
Parameters
Type | Name | Description |
---|---|---|
T | spline | The spline to calculate bounds for. |
float4x4 | transform | The matrix to transform the spline's elements with. |
Returns
Type | Description |
---|---|
Bounds | The bounds of a spline. |
Type Parameters
Name | Description |
---|---|
T | A type implementing ISpline. |