nanos world API Reference Unofficial documentation
Function Shared

Vector.Equals

Check if the vector is equal to another vector, within specified error limits

Syntax

Lua
my_vector:Equals(other, tolerance = 0.000001)

Parameters

Name Type Default Description
other Vector The vector to compare to
tolerance optional number 0.000001 The error limits

Returns

  • boolean Are the vectors equal or not