| java.lang.Object org.acm.seguin.uml.line.Segment
Segment | class Segment (Code) | | Segment
author: Chris Seguin |
Constructor Summary | |
public | Segment() |
Segment | public Segment()(Code) | | Constructor for the Segment object
|
aboveLine | public Point aboveLine(double t, double dist)(Code) | | Returns a point above the line
Parameters: t - Description of Parameter Parameters: dist - Description of Parameter Description of the Returned Value |
belowLine | public Point belowLine(double t, double dist)(Code) | | Returns a point below the line
Parameters: t - Description of Parameter Parameters: dist - Description of Parameter Description of the Returned Value |
distanceToPoint | public double distanceToPoint(Point point)(Code) | | Determines the distance between a point and a segment
Parameters: point - The point Returns the distance between the segment and the point or-1 if the point is closer to an end |
findFromEnd | public double findFromEnd(double desiredDistance)(Code) | | Returns a parameter on the line that is a given distance from the end of
the segment
Parameters: desiredDistance - the desired distance the parameter |
getParamFromDistance | public double getParamFromDistance(double dist)(Code) | | Gets the ParamFromDistance attribute of the Segment object
Parameters: dist - Description of Parameter The ParamFromDistance value |
getPoint | public Point getPoint(double t)(Code) | | Gets the Point attribute of the Segment object
Parameters: t - Description of Parameter The Point value |
intersect | public double intersect(Rectangle rect)(Code) | | Intersects the rectangle with the segment
Parameters: rect - The rectangle The parameter of the location on the line, -1 if it does notintersect |
reset | public void reset(Rectangle left, Rectangle right)(Code) | | Description of the Method
Parameters: left - Description of Parameter Parameters: right - Description of Parameter |
reset | public void reset(Point left, Point right)(Code) | | Description of the Method
Parameters: left - Description of Parameter Parameters: right - Description of Parameter |
reset | public void reset(Rectangle left, Point right)(Code) | | Description of the Method
Parameters: left - Description of Parameter Parameters: right - Description of Parameter |
reset | public void reset(Point left, Rectangle right)(Code) | | Description of the Method
Parameters: left - Description of Parameter Parameters: right - Description of Parameter |
|
|