nanos world API Reference Unofficial documentation
Function Shared Bleeding edge only

Vector2D.DistanceSquared

Return the squared distance of 2 vectors

Syntax

Lua
my_vector2_d:DistanceSquared(other)

Parameters

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

Returns

  • number The squared distance between the vectors