|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.ScaleValues
The ScaleValues class represent an object that is capable to
hold scale values for different directions.
| Field Summary | |
static ScaleValues |
DEFAULT_SCALEVALUES
constant that defines an default zoom values object (NOTICE never change the instance variables of this object - use the copy constructor instead and change the instance variables of the copy) |
double[] |
scales
instance variable for the single components of the scale values |
static double |
UNDEFINED
constant that marks an undefined scale value |
static int |
X_SCALE
constant that tells about the indices of the scale values components |
static int |
Y_SCALE
constant that tells about the indices of the scale values components |
static int |
Z_SCALE
constant that tells about the indices of the scale values components |
| Constructor Summary | |
ScaleValues()
Default constructor for ScaleValues that initializes it for
2D space. |
|
ScaleValues(double[] scales)
Constructor for ScaleValues with an array of scale values
given by scales for a non fixed number of dimensions. |
|
ScaleValues(double scaleX,
double scaleY)
Constructor for ScaleValues with given scales for the
x axis and the y axis. |
|
ScaleValues(double scaleX,
double scaleY,
double scaleZ)
Constructor for ScaleValues with given scales for the
x axis, the y axis and the z axis. |
|
ScaleValues(ScaleValues scalevalues)
Copy constructor for ScaleValues. |
|
| Method Summary | |
int |
getDimensions()
Returns the number of dimensions this ScaleValues consist
of. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int X_SCALE
public static final int Y_SCALE
public static final int Z_SCALE
public static final double UNDEFINED
public static final ScaleValues DEFAULT_SCALEVALUES
public double[] scales
| Constructor Detail |
public ScaleValues()
ScaleValues that initializes it for
2D space.
public ScaleValues(double scaleX,
double scaleY)
ScaleValues with given scales for the
x axis and the y axis.
scaleX - the scale value on the x axisscaleY - the scale value on the y axis
public ScaleValues(double scaleX,
double scaleY,
double scaleZ)
ScaleValues with given scales for the
x axis, the y axis and the z axis.
scaleX - the scale value on the x axisscaleY - the scale value on the y axisscaleZ - the scale value on the z axispublic ScaleValues(double[] scales)
ScaleValues with an array of scale values
given by scales for a non fixed number of dimensions.
scales - the scale values on the different axespublic ScaleValues(ScaleValues scalevalues)
ScaleValues.
scalevalues - the ScaleValues instance to create
a copy of| Method Detail |
public int getDimensions()
ScaleValues consist
of.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||