We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test case:
@Test void interiorAngle_rightTriangle() { // Triangle WKT: "POLYGON ((1 2, 3 2, 2 1, 1 2))" var p1 = new CoordinateXY(1, 2); var p2 = new CoordinateXY(3, 2); var p3 = new CoordinateXY(2, 1); assertEquals(45, Math.toDegrees(Angle.interiorAngle(p1, p2, p3)), 0.01); // returns 315 assertEquals(90, Math.toDegrees(Angle.interiorAngle(p2, p3, p1)), 0.01); assertEquals(45, Math.toDegrees(Angle.interiorAngle(p3, p1, p2)), 0.01); }
The text was updated successfully, but these errors were encountered:
Fix Angle#interiorAngle method (#721) (#723)
480301f
Signed-off-by: grimsa <[email protected]>
Successfully merging a pull request may close this issue.
Test case:
The text was updated successfully, but these errors were encountered: