Vector3Extensions.IsZero

Extension Method in Vector3Extensions

Declaration

public static bool IsZero(this Vector3 vector, float epsilon = 1.401298E-45F)

Description

Checks if the vector is zero given a margin of error specified by an epsilon.

Parameters

vectorThe vector to check.
epsilonThe margin of error.

Returns

boolTrue if the vector is considered zero.