nanos world API Reference Unofficial documentation
Function Shared

Vector.DistanceSquared

Return the squared distance of 2 vectors

Syntax

Lua
my_vector:DistanceSquared(other)

Parameters

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

Returns

  • number The squared distance between the vectors