Skip to content

LineSegment distance doesn't work if LineSegment2D is based on identical points  #7

Closed
@ChristianLutz

Description

@ChristianLutz

Hello,

the following test fails, because the LineSegment2D has been created with two identical points.
In my opionen it is fine to create a line segment with two identical points in contrast to a straight line. If so the distance should still be possible.

@Test
public void javaGeomLineSegment2DDistanceTest() {
    final LineSegment2D lineA = new LineSegment2D(244059.964, 151370.04000000003, 244059.964, 151370.04000000003);
    lineA.distance(new Point2D(246599.964, 151370.03000000003));
}

sincerely
christian

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions