Method DistanceToSquared2D
DistanceToSquared2D(Vector3)
Calculates the squared distance between two vectors, ignoring the Z-component.
Declaration
public float DistanceToSquared2D(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The second vector to calculate the squared distance to. |
Returns
Type | Description |
---|---|
System.Single | The distance to the other vector. |