Function parallelNormalized

  • Parameters

    • v: number[]

      one vector, n-dimensions

    • u: number[]

      one vector, n-dimensions

    • Optional epsilon: number = EPSILON

      an optional epsilon with a default value of 1e-6

    Returns boolean

    are the two vectors parallel within an epsilon?

    Description

    check if two already normalized vectors are parallel to each other, within an epsilon. Parallel includes the case where the vectors are exactly 180 degrees flipped from one another.