From 246b4df74a04c72ec76b9f48b70fa31d7e3b455b Mon Sep 17 00:00:00 2001 From: David Hoover Date: Fri, 10 Jun 2011 17:00:02 -0700 Subject: [PATCH] More javadoc --- src/main/java/pythagoras/d/ILine.java | 3 +++ src/main/java/pythagoras/f/ILine.java | 3 +++ 2 files changed, 6 insertions(+) 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. */