scenic.path
Class CurvedSegment
java.lang.Object
scenic.path.CurvedSegment
- All Implemented Interfaces:
- Segment
- Direct Known Subclasses:
- ArcSegment, CubicBezierSegment, QuadraticBezierSegment
public abstract class CurvedSegment
- extends java.lang.Object
- implements Segment
This is the base class for all curved segments.
|
Method Summary |
abstract java.awt.geom.Point2D.Double |
calcPoint(double t,
java.awt.geom.Point2D.Double position)
Calculates the position of the segment at the given t value. |
void |
walk(PathWalker walker,
java.awt.geom.Point2D.Double position,
java.awt.geom.AffineTransform error)
Walks the given walker through this segment. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
walk
public void walk(PathWalker walker,
java.awt.geom.Point2D.Double position,
java.awt.geom.AffineTransform error)
- Description copied from interface:
Segment
- Walks the given walker through this segment.
- Specified by:
walk in interface Segment
- Parameters:
walker - the walker.position - the start position.error - the error matrix.
calcPoint
public abstract java.awt.geom.Point2D.Double calcPoint(double t,
java.awt.geom.Point2D.Double position)
- Calculates the position of the segment at the given t value.
- Parameters:
t - the t value (must be in the range [0, 1]).position - the previous position.
- Returns:
- the position.