|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectespresso3d.engine.lowlevel.E3DVector3F
| Constructor Summary | |
E3DVector3F()
|
|
E3DVector3F(double x,
double y,
double z)
|
|
E3DVector3F(E3DVector3F toCopy)
|
|
| Method Summary | |
E3DVector3F |
add(E3DVector3F translationAmt)
Return a new E3DVector3F with this + translationAmt added |
void |
addEqual(E3DVector3F translationAmt)
Set this vector to this + translationAmt |
double |
angleBetweenDegrees(E3DVector3F otherVec)
Get the angle between this vector and otherVec in degrees |
double |
angleBetweenRads(E3DVector3F otherVec)
Get the angle between this vector and otherVec in radians |
E3DVector3F |
crossProduct(E3DVector3F otherVec)
Get the cross product of this vector x otherVec |
double |
dotProduct(E3DVector3F otherVec)
Get the dot product of this vector and otherVec |
boolean |
equals(double x,
double y,
double z)
|
boolean |
equals(E3DVector3F vec)
|
java.nio.FloatBuffer |
getFloatBuffer()
|
double |
getLength()
Get the actual length of this vector |
double |
getLengthSquared()
Get the length of the vector squared. |
double |
getX()
|
double |
getY()
|
double |
getZ()
|
E3DVector3F |
multiply(E3DVector3F multiplyAmt)
Get a new vector with thisVector * multiplyAmt |
void |
multiplyEqual(E3DVector3F multiplyAmt)
Set this vector equal to this * multiplyAmt |
E3DVector3F |
normalise()
Get a new vector that is the normalised version of this vector |
void |
normaliseEqual()
Normalise this vector |
E3DVector3F |
rotate(double angle,
E3DVector3F aroundVec)
Get a new vector that is rotated angle radians around the around vec |
void |
rotateEqual(double angle,
E3DVector3F aroundVec)
Rotate this vector angle radians around the aroundVec |
E3DVector3F |
scale(double scaleAmt)
Return a new vector of this vector scaled by scaleAmt |
void |
scaleEqual(double scaleAmt)
Set this vector to this scaled by scaleAmt |
void |
set(double x,
double y,
double z)
Set the coordinates to x, y, and z |
void |
set(E3DVector3F newVec)
Set the x, y, and z coord of this vec to copies of the passed in vector |
void |
setX(double x)
|
void |
setY(double y)
|
void |
setZ(double z)
|
E3DVector3F |
subtract(E3DVector3F translationAmt)
Return a new E3DVector3F with this - translationAmt subtract |
void |
subtractEqual(E3DVector3F translationAmt)
Set this vector to this - translationAmt |
java.lang.String |
toString()
Get a string of vertex coordinates for this vector |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public E3DVector3F()
public E3DVector3F(E3DVector3F toCopy)
public E3DVector3F(double x,
double y,
double z)
| Method Detail |
public boolean equals(E3DVector3F vec)
public boolean equals(double x,
double y,
double z)
public double getX()
public void setX(double x)
x - The x to set.public double getY()
public void setY(double y)
y - The y to set.public double getZ()
public void setZ(double z)
z - The z to set.public void set(E3DVector3F newVec)
newVec -
public void set(double x,
double y,
double z)
x - y - z - public E3DVector3F add(E3DVector3F translationAmt)
translationAmt -
public void addEqual(E3DVector3F translationAmt)
translationAmt - public E3DVector3F subtract(E3DVector3F translationAmt)
translationAmt -
public void subtractEqual(E3DVector3F translationAmt)
translationAmt - public E3DVector3F scale(double scaleAmt)
scaleAmt -
public void scaleEqual(double scaleAmt)
public E3DVector3F multiply(E3DVector3F multiplyAmt)
multiplyAmt -
public void multiplyEqual(E3DVector3F multiplyAmt)
multiplyAmt -
public E3DVector3F rotate(double angle,
E3DVector3F aroundVec)
angle - Angle to rotate in radiansaroundVec - Vector that creates the central axis to rotate around
public void rotateEqual(double angle,
E3DVector3F aroundVec)
angle - aroundVec - Vector that creates the central axis to rotate aroundpublic double dotProduct(E3DVector3F otherVec)
otherVec -
public double getLengthSquared()
public double getLength()
public double angleBetweenDegrees(E3DVector3F otherVec)
otherVec -
public double angleBetweenRads(E3DVector3F otherVec)
otherVec -
public E3DVector3F normalise()
public void normaliseEqual()
public E3DVector3F crossProduct(E3DVector3F otherVec)
otherVec -
public java.nio.FloatBuffer getFloatBuffer()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||