diff --git a/src/main/java/pythagoras/d/ILine.java b/src/main/java/pythagoras/d/ILine.java index 448fa4b..1ef8f99 100644 --- a/src/main/java/pythagoras/d/ILine.java +++ b/src/main/java/pythagoras/d/ILine.java @@ -61,8 +61,11 @@ public interface ILine extends IShape, Cloneable /** Returns the distance from the supplied point this line segment. */ double pointSegDist (IPoint p); + /** Returns an indicator of where the specified point (px,py) lies with respect to this line + * segment. */ int relativeCCW (double px, double py); + /** Returns an indicator of where the specified point lies with respect to this line segment. */ int relativeCCW (IPoint p); /** Returns a mutable copy of this line. */ diff --git a/src/main/java/pythagoras/f/ILine.java b/src/main/java/pythagoras/f/ILine.java index 74202cb..6954537 100644 --- a/src/main/java/pythagoras/f/ILine.java +++ b/src/main/java/pythagoras/f/ILine.java @@ -61,8 +61,11 @@ public interface ILine extends IShape, Cloneable /** Returns the distance from the supplied point this line segment. */ float pointSegDist (IPoint p); + /** Returns an indicator of where the specified point (px,py) lies with respect to this line + * segment. */ int relativeCCW (float px, float py); + /** Returns an indicator of where the specified point lies with respect to this line segment. */ int relativeCCW (IPoint p); /** Returns a mutable copy of this line. */