Function sqrMag

  • Calculates the square of the magnitude of the 3-element vector a

    (This is cheaper than calculating the actual magnitude and is useful e.g. when comparing two vectors)

    Parameters

    • a: Vec3

      a 3-element vector object

    Returns number

    |a|²

Generated using TypeDoc