|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fsmvis.engine.Coordinate
Field Summary | |
static int |
activeDimensions
|
static int |
INITIAL_DIMENSIONS
|
double |
w
|
double |
x
|
double |
y
|
double |
z
|
Constructor Summary | |
Coordinate()
constructor: Takes no params and sets the initial values to be 0.0 |
|
Coordinate(Coordinate c)
constructor: instantiate the coordinate with a new copy of an existing coordinate |
|
Coordinate(double x,
double y)
constructor: takes two double values to represent the coords |
|
Coordinate(double x,
double y,
double z)
constructor: takes two double values to represent the coords |
|
Coordinate(double x,
double y,
double z,
double w)
constructor: takes two double values to represent the coords |
Method Summary | |
void |
add(Vect v)
Adds the components of the vector v onto this coordinate |
boolean |
equals(Coordinate c)
Defines whether or not two coordinates are equal |
double |
get(int index)
|
static int |
getActiveDimensions()
A static method to get the number of dimensions which are currently active or in use |
double |
getW()
Returns the w value |
double |
getX()
Returns the x value |
double |
getY()
Returns the y value |
double |
getZ()
Returns the z value |
void |
set(Coordinate c)
|
void |
set(double x,
double y,
double z,
double w)
Sets the values of the coordinates |
void |
set(int index,
double val)
|
static void |
setActiveDimensions(int activeD)
A static method to set the number of active dimensions, must be between 0 and INITIAL_DIMENSIONS |
void |
setW(double w)
Sets the w value |
void |
setX(double x)
Sets the x value |
void |
setY(double y)
Sets the y value |
void |
setZ(double z)
Sets the z value |
void |
sub(Vect v)
subtracts the components of the vector v from this coordinate |
java.lang.String |
toString()
Turns the object into a String representation |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public double x
public double y
public double z
public double w
public static int activeDimensions
public static final int INITIAL_DIMENSIONS
Constructor Detail |
public Coordinate()
public Coordinate(double x, double y)
x
- The x value of coordy
- The y valuepublic Coordinate(double x, double y, double z)
x
- The x value of coordy
- The y valuez
- THe z valuepublic Coordinate(double x, double y, double z, double w)
x
- The x value of coordy
- The y valuez
- The z value#w
- The w valuepublic Coordinate(Coordinate c)
c
- Coordinate values to be used for instantiatingMethod Detail |
public double get(int index)
public double getX()
public double getY()
public double getZ()
public double getW()
public void set(double x, double y, double z, double w)
x
- The x valuey
- The y valuez
- The z valuew
- The w valuepublic void set(Coordinate c)
c
- public void set(int index, double val)
index
- val
- public void setX(double x)
public void setY(double y)
public void setZ(double z)
public void setW(double w)
public void add(Vect v)
v
- The vector to be added onto this coordinatepublic void sub(Vect v)
v
- The vector to be added onto this coordinatepublic static int getActiveDimensions()
public static void setActiveDimensions(int activeD)
activeD
- The number of dimensions that are currently in usepublic boolean equals(Coordinate c)
c
- the coordinate to compare withpublic java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |