Vector2Extensions.IsZero

Extension Method in Vector2Extensions

Declaration

public static bool IsZero(this Vector2 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.