net.cscott.sdr.calls
Class DancerBezierPath
java.lang.Object
net.cscott.sdr.calls.DancerBezierPath
- All Implemented Interfaces:
- Comparable<DancerBezierPath>
public class DancerBezierPath
- extends Object
- implements Comparable<DancerBezierPath>
Low-level version of DancerPath
which explicitly represents
the Bezier paths for the dancer to follow. This is more useful than
the usual DancerPath
, which is Position
-based, when
doing low-level affine path transformations like hexagon/octagon and
size expansion, since it separates the direction from the location.
DancerBezierPath
compares to others based on start time, to
make it easy to keep a list sorted by start time.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
startTime
public final Fraction startTime
duration
public final Fraction duration
location
public final Bezier.Bezier2D location
direction
public final Bezier.Bezier2D direction
DancerBezierPath
public DancerBezierPath(Fraction startTime,
Fraction duration,
Bezier.Bezier2D location,
Bezier.Bezier2D direction)
compareTo
public int compareTo(DancerBezierPath dbp)
- Specified by:
compareTo
in interface Comparable<DancerBezierPath>
evaluateX
public double evaluateX(double time)
evaluateY
public double evaluateY(double time)
evaluateAngle
public double evaluateAngle(double time)
Copyright © 2006-2009 C. Scott Ananian