public class TPos
extends java.lang.Object
u t vde-------------f C---I--D\ gs c \ \ I | | \ \ \ / hr H--B--AF--E iq (G) | | /-\ | | m | \ \ jp l---n-k o
Modifier and Type | Field and Description |
---|---|
double |
rot
The rotation of the object that was the result
of the last computation.
|
double |
trainStartOffset
Subtract a position offset for the train on the track because
Scene 1 frame 1 is over a minute into the movie.
|
double |
x
The X component of the vector that was the result
of the last computation.
|
double |
y
The Y component of the vector that was the result
of the last computation.
|
double |
z
The Z component of the vector that was the result
of the last computation.
|
Constructor and Description |
---|
TPos()
Creates a new instance of TPos
|
TPos(double index)
Creates a new instance of TPos
|
Modifier and Type | Method and Description |
---|---|
void |
Get(double tpos)
Calculate the x/y/z vector and rotation of this Tpos at the linear position passed.
|
void |
setStartOffset(double offset)
Set the start offset for this Tpos.
|
double |
TimeToTpos(double time)
Return the linear position along the track at this time.
|
public double trainStartOffset
public double x
public double y
public double z
public double rot
public TPos(double index)
index
- The amount to set the trainStartOffset by.public TPos()
public void setStartOffset(double offset)
offset
- The new trainStartOffset valuepublic double TimeToTpos(double time)
time
- The time we are interested in.public void Get(double tpos)
tpos
- The linear position (Train POSition) that will be converted.