Method DistanceSq
DistanceSq(float3)
Determines the squared distance from a point to the nearest point to it that is contained by an AABB.
Declaration
public float DistanceSq(float3 point)
Parameters
| Type | Name | Description |
|---|---|---|
| float3 | point | The point to find the distance from |
Returns
| Type | Description |
|---|---|
| float | The squared distance from the point to the nearest point to it that is contained by the AABB. |