• Parses an angle value in radians or degrees and returns a normalized value in radians

    Parameters

    • angle: string | number

      eg: 3.14, 3.14rad, 180deg

    • OptionalzeroCenter: boolean = false

      normalize between -Pi - Pi instead of 0 - 2*Pi

    • OptionalhalfCircle: boolean = zeroCenter

      normalize between -Pi/2 - Pi/2 instead of -Pi - Pi

    Returns number

    PSVError when the angle cannot be parsed