sdr 0.21

net.cscott.sdr.calls
Class DancerPath

java.lang.Object
  extended by net.cscott.sdr.calls.DancerPath

public class DancerPath
extends Object

A DancerPath is the result of evaluating a call for a specific dancer in a formation. Unlike a Prim, a DancerPath is an absolute motion, and includes computed information about flow, roll, sweep, and timing.

The flow information we collect is based on Lynette Bellini's Rules of Flow, along with Dave Wilson's theories about dancer kinematics; to wit: certain "bad flow" motions actually work if there is hand contact between certain dancers, as it lets them push off of one another.

Version:
$Id: DancerPath.java,v 1.3 2007-03-07 22:05:29 cananian Exp $
Author:
C. Scott Ananian

Nested Class Summary
static class DancerPath.PointOfRotation
          In order to have a method of discussing the various motions encountered in square dance choreography, Lynette Bellini identified several points of rotation: A single dancer: the point of rotation is about the center of a single dancer, as in the call roll.
 
Field Summary
 Point arcCenter
          The arcCenter can be null for straight paths.
 Position from
          The rotations on the to and from positions should be exact.
 DancerPath.PointOfRotation pointOfRotation
          The point of rotation, for flow computations.
 Rotation rollDir
          The rollDir and sweepDir may be zero.
 Rotation sweepDir
          The rollDir and sweepDir may be zero.
 Fraction time
          The time this motion should take.
 Position to
          The rotations on the to and from positions should be exact.
 
Constructor Summary
DancerPath(Position from, Position to, Point arcCenter, Fraction time, DancerPath.PointOfRotation pointOfRotation, Rotation rollDir, Rotation sweepDir)
          Create an immutable DancerPath object.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

public final Position from
The rotations on the to and from positions should be exact.


to

public final Position to
The rotations on the to and from positions should be exact.


arcCenter

public final Point arcCenter
The arcCenter can be null for straight paths.


time

public final Fraction time
The time this motion should take.


pointOfRotation

public final DancerPath.PointOfRotation pointOfRotation
The point of rotation, for flow computations. May be null for straight paths.


rollDir

public final Rotation rollDir
The rollDir and sweepDir may be zero.


sweepDir

public final Rotation sweepDir
The rollDir and sweepDir may be zero.

Constructor Detail

DancerPath

public DancerPath(Position from,
                  Position to,
                  Point arcCenter,
                  Fraction time,
                  DancerPath.PointOfRotation pointOfRotation,
                  Rotation rollDir,
                  Rotation sweepDir)
Create an immutable DancerPath object.


sdr 0.21

Copyright (c) 2006 C. Scott Ananian