sdr 0.7

net.cscott.sdr.calls
Class Breather.FormationPiece

java.lang.Object
  extended by net.cscott.sdr.calls.Breather.FormationPiece
Enclosing class:
Breather

public static class Breather.FormationPiece
extends Object

A component to be breathed into a complete formation. Each Breather.FormationPiece contains a position and a formation to be inserted at that position.


Field Summary
 Formation input
          Input formation piece.
 Formation output
          The formation which will correspond to input in the output (meta) formation.
 
Constructor Summary
Breather.FormationPiece(Formation input, Formation output)
           
Breather.FormationPiece(Formation input, Formation output, ExactRotation r)
          Prepare an argument to the Breather.breathe(net.cscott.sdr.calls.Formation) method.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

input

public final Formation input
Input formation piece. The original formation is a simple superposition of these.


output

public final Formation output
The formation which will correspond to input in the output (meta) formation. This might be a formation of a single Phantom, for example.

See Also:
FormationListFast.SINGLE_DANCER
Constructor Detail

Breather.FormationPiece

public Breather.FormationPiece(Formation input,
                               Formation output,
                               ExactRotation r)
Prepare an argument to the Breather.breathe(net.cscott.sdr.calls.Formation) method.

Parameters:
input - Input formation piece.
output - Output formation piece.
r - The rotation to use for the output formation in the eventual result. Typically this is the rotation of formation input from whatever the 'canonical' orientation of output is. For example, if we are mapping single dancers to single dancers, then input is the rotated offset result of Formation.onlySelected(), output is FormationListFast.SINGLE_DANCER (which is facing north), and the rotation imr matches the rotation of the dancer in input.

Breather.FormationPiece

public Breather.FormationPiece(Formation input,
                               Formation output)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian