Interface RotationAngle

    • Method Detail

      • getRotationAngle

        double getRotationAngle​(IPrimitive p)
        Calculates the rotation angle depending on the primitive to be displayed.
        Parameters:
        p - primitive
        Returns:
        rotation angle
        Since:
        13623 (signature)
      • buildStaticRotation

        static RotationAngle buildStaticRotation​(double angle)
        Always returns the fixed angle.
        Parameters:
        angle - angle
        Returns:
        rotation angle
      • buildStaticRotation

        static RotationAngle buildStaticRotation​(String string)
        Parses the rotation angle from the specified string.
        Parameters:
        string - angle as string
        Returns:
        rotation angle
      • parseCardinalRotation

        static double parseCardinalRotation​(String cardinal)
        Converts an angle given in cardinal directions to radians. The following values are supported: n, north, ne, northeast, e, east, se, southeast, s, south, sw, southwest, w, west, nw, northwest.
        Parameters:
        cardinal - the angle in cardinal directions
        Returns:
        the angle in radians