|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexperiment.property.Position
public class Position
Created by IntelliJ IDEA. User: andy Date: Mar 9, 2010 A position in the 3 dimensional plane
Constructor Summary | |
---|---|
Position(float x,
float y,
float z,
double phi,
double theta)
Default constructor |
Method Summary | |
---|---|
double |
getPhi()
Returns the phi angle of the relative coordinate system |
double |
getTheta()
Returns the theta angle of the relative coordinate system |
javax.vecmath.Vector3d |
getVector3d()
Converts an experiment entity position to a 3d canvas position. |
float |
getX()
Returns the objects x axis value |
float |
getY()
Returns the objects y axis value |
float |
getZ()
Returns the objects z axis value |
boolean |
near(double a,
double b)
Loosly compares two values. |
boolean |
same(javax.vecmath.Vector3d position)
Compares this position to a transform position. |
void |
setPhi(double phi)
Sets the phi angle |
void |
setTheta(double theta)
Sets the theta angle |
void |
setX(float x)
Sets the x axis coordinate value |
void |
setY(float y)
Sets the y axis coordinate value |
void |
setZ(float z)
Sets the z axis coordinate value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Position(float x, float y, float z, double phi, double theta)
x
- is given in degreesy
- is given in degreesz
- is given in radiansphi
- angle in degrees.theta
- angle in degrees.Method Detail |
---|
public double getPhi()
public double getTheta()
public javax.vecmath.Vector3d getVector3d()
public float getX()
public float getY()
public float getZ()
public boolean near(double a, double b)
a
- the first value.b
- the second value.
public boolean same(javax.vecmath.Vector3d position)
position
- a three dimensional Vector containing the x, y, z double values.
public void setPhi(double phi)
phi
- tha angle in radianspublic void setTheta(double theta)
theta
- public void setX(float x)
x
- value in meterspublic void setY(float y)
y
- value in meterspublic void setZ(float z)
z
- value in degrees
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |