sdr 0.7

net.cscott.sdr.calls
Class DancerBezierPath

java.lang.Object
  extended by 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.


Field Summary
 Bezier.Bezier2D direction
           
 Fraction duration
           
 Bezier.Bezier2D location
           
 Fraction startTime
           
 
Constructor Summary
DancerBezierPath(Fraction startTime, Fraction duration, Bezier.Bezier2D location, Bezier.Bezier2D direction)
           
 
Method Summary
 int compareTo(DancerBezierPath dbp)
           
 double evaluateAngle(double time)
           
 double evaluateX(double time)
           
 double evaluateY(double time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

public final Fraction startTime

duration

public final Fraction duration

location

public final Bezier.Bezier2D location

direction

public final Bezier.Bezier2D direction
Constructor Detail

DancerBezierPath

public DancerBezierPath(Fraction startTime,
                        Fraction duration,
                        Bezier.Bezier2D location,
                        Bezier.Bezier2D direction)
Method Detail

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)

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian