nanos world API Reference Unofficial documentation
Function Shared Bleeding edge only

Vector2D.Distance

Returns the distance of 2 vectors

Syntax

Lua
my_vector2_d:Distance(other)

Parameters

Name Type Default Description
other Vector2D The vector to get the distance to

Returns

  • number The distance between the vectors