Class HeadingTransformProcessor

    • Constructor Detail

      • HeadingTransformProcessor

        public HeadingTransformProcessor​(boolean outputPositive)
        Create a new HeadingTransformProcessor that uses radians.
        Parameters:
        outputPositive - Whether to output values in the range [0,2π] (i.e. [0,360]). If true, creates a HeadingTransformProcessor to convert angles on [-π, π] to angles on [0,2π]; if false, creates one that does the reverse.
      • HeadingTransformProcessor

        public HeadingTransformProcessor​(boolean outputPositive,
                                         boolean radians)
        Create a new HeadingTransformProcessor.
        Parameters:
        outputPositive - Whether to output values in the range [0,2π] (or [0,360]). If true, creates a HeadingTransformProcessor to convert angles on [-π, π] to angles on [0,2π]; if false, creates one that does the reverse.
        radians - Whether to use radians. If true, assumes inputs are in radians; otherwise, uses degrees.