Class RotationAngle.WayDirectionRotationAngle

    • Method Detail

      • getRotationAngle

        public double getRotationAngle​(IPrimitive p)
        Description copied from interface: RotationAngle
        Calculates the rotation angle depending on the primitive to be displayed.
        Specified by:
        getRotationAngle in interface RotationAngle
        Parameters:
        p - primitive
        Returns:
        rotation angle in radians, clockwise starting from up/north
      • getRotationAngleForNodeOnWay

        public static java.lang.Double getRotationAngleForNodeOnWay​(Node n,
                                                                    Way w)
        Calculates the rotation angle of a node in a way based on the preceding way segment. If the node is the first node in the given way, the angle of the following way segment is used instead.
        Parameters:
        n - the node to get the rotation angle for
        w - the way containing the node
        Returns:
        the rotation angle in radians or null if the way does not contain the node
        Since:
        18661
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object