Progetto H — API Reference API & Scripting Documentation
Function Shared

Vector.IsNearlyZero

Checks whether vector is near to zero within a specified tolerance

Syntax

Lua
my_vector:IsNearlyZero(tolerance = 0.000001)

Parameters

Name Type Default Description
tolerance optional number 0.000001 The error limits

Returns

  • boolean If the bool is near to zero