|
sdr 0.21 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cscott.sdr.calls.Warp
public abstract class Warp
A Warp
denotes a time-dependent transformation of the
dancers' positions. Time runs from 0 (at the start of the call) to
1 (at the end); it is the responsibility of the caller to scale
the time argument according to the actual length of the warped calls.
As an example, the Warp
for a stretched
box formation starts with boxes overlapping at time t=0, and
results in an undistorted setup at time t=1.
Field Summary | |
---|---|
static Warp |
MIRROR
A Warp object that mirrors points across the y-axis. |
static Warp |
NONE
A Warp which returns points unchanged. |
Method Summary | |
---|---|
static Warp |
compose(Warp second,
Warp first)
Returns a new Warp object which first applies the
first warp to the given point, then applies the
second warp to the result. |
static Warp |
rotateAndMove(Position from,
Position to)
Returns a Warp which will rotate and translate
points such that from is warped to to . |
abstract Position |
warp(Position p,
Fraction time)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Warp NONE
Warp
which returns points unchanged.
public static final Warp MIRROR
Warp
object that mirrors points across the y-axis.
Method Detail |
---|
public abstract Position warp(Position p, Fraction time)
public static Warp rotateAndMove(Position from, Position to)
Warp
which will rotate and translate
points such that from
is warped to to
.
Requires that both from.facing
and to.facing
are
ExactRotation
s.
public static Warp compose(Warp second, Warp first)
Warp
object which first applies the
first
warp to the given point, then applies the
second
warp to the result.
|
sdr 0.21 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |