Garry's Mod Wiki

Garry's Mod Wiki

  number Vector:Distance2D( Vector otherVector )

Description

Returns the Euclidean distance between the vector and the other vector in 2D space. The Z axis is ignored.

This function is more expensive than Vector:Distance2DSqr. However, please see the notes for Vector:Distance2DSqr before using it as squared distances are not the same as Euclidean distances.

Arguments

1 Vector otherVector
The vector to get the distance to.

Returns

1 number
Distance between the vectors in 2D space.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...