Skip to content

Commit b23d867

Browse files
committed
Use Segment instead of Line
1 parent 5fc066d commit b23d867

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/org/openmicroscopy/shoola/util/math/geom2D

1 file changed

+2
-2
lines changed

src/main/java/org/openmicroscopy/shoola/util/math/geom2D/Segment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public boolean lies(PlanePoint p)
123123
*/
124124
public boolean equals(Object o)
125125
{
126-
if (o == null || !(o instanceof Line)) return false;
127-
Line other = (Line) o;
126+
if (o == null || !(o instanceof Segment)) return false;
127+
Segment other = (Segment) o;
128128
return (origin == other.origin && direction == other.direction);
129129
}
130130

0 commit comments

Comments
 (0)