Vector2Extensions.IsEqualTo

Extension Method in Vector2Extensions

Declaration

public static bool IsEqualTo(this Vector2 lhs, Vector2 rhs, float epsilon = 1.401298E-45F)

Description

Checks for equality with another vector given a margin of error specified by an epsilon.

Parameters

lhsThe left-hand side of the equality check.
rhsThe right-hand side of the equality check.
epsilon

Returns

boolTrue if the values are equal.