Polarith AI
1.8

◆ GetBoundsSqrDistance()

float GetBoundsSqrDistance ( Vector3  point,
BoundsType  bounds,
VectorProjectionType  vectorProjection = VectorProjectionType.None 
)

Returns the square distance to the bounds of this percept specified by the given bounds .

Parameters
pointThe reference position.
boundsThe BoundsType to be used.
vectorProjectionApplies a vector projection to this calculation.
Returns
The square distance between the reference position and the closest point on the bounds.
Imprint