Ignore:
Timestamp:
2018-04-23T23:13:03+02:00 (18 months ago)
Author:
Don-vip
Message:

fix #16189 - Add "almost square check" for buildings (patch by marxin, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r13638 r13670  
    794794
    795795        return result;
     796    }
     797
     798    /**
     799     * Get angles in radians and return it's value in range [0, 180].
     800     *
     801     * @param angle the angle in radians
     802     * @return normalized angle in degrees
     803     * @since 13670
     804     */
     805    public static double getNormalizedAngleInDegrees(double angle) {
     806        return Math.abs(180 * angle / Math.PI);
    796807    }
    797808
Note: See TracChangeset for help on using the changeset viewer.