Skip to main content

vec2Equals

Callable

  • vec2Equals(a: Vec2, b: Vec2, epsilon?: number): boolean

  • Returns true if all components of a and b are within epsilon.


    Parameters

    • a: Vec2
    • b: Vec2
    • epsilon: number = EQUALITY_EPSILON

    Returns boolean