|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--noope.core.Vector3D | +--noope.core.MutableVector3D
A mutable extension of Vector3D.
Fields inherited from class noope.core.Vector3D |
ex, ey, ez, x, y, z |
Constructor Summary | |
MutableVector3D()
Construct a MutableVector3D and initialise it to (0, 0, 0). |
|
MutableVector3D(double new_x,
double new_y,
double new_z)
Construct a MutableVector3D and initialise it to (new_x, new_y, new_z). |
|
MutableVector3D(java.lang.String s)
Construct a new MutableVector3D by parsing a string. |
|
MutableVector3D(Vector3D v)
Construct a MutableVector3D equal to v. |
Method Summary | |
void |
addInplace(Vector3D v)
Increment this Vector3D by the Vector3D v inplace. |
void |
multScalarInplace(double d)
Multiply each component of this Vector3D by the scalar d inplace. |
void |
setX(double new_x)
Set the x component of this Vector3D |
void |
setY(double new_y)
Set the y component of this Vector3D |
void |
setZ(double new_z)
Set the z component of this Vector3D |
void |
subtractInplace(Vector3D v)
Decrement this Vector3D by the Vector3D v inplace. |
Methods inherited from class noope.core.Vector3D |
add, crossProduct, dotProduct, equals, equals, getModulus, getModulusSquared, getUnitVector, getX, getY, getZ, hashCode, multScalar, negative, subtract, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MutableVector3D()
public MutableVector3D(double new_x, double new_y, double new_z)
new_x
- x componentnew_y
- y componentnew_z
- z componentpublic MutableVector3D(Vector3D v)
v
- the vector to copy frompublic MutableVector3D(java.lang.String s) throws java.text.ParseException
s
- the string to parsejava.text.ParseException
- if there was an error parsing the stringMethod Detail |
public void setX(double new_x)
new_x
- x componentpublic void setY(double new_y)
new_y
- y componentpublic void setZ(double new_z)
new_z
- z componentpublic void multScalarInplace(double d)
public void addInplace(Vector3D v)
public void subtractInplace(Vector3D v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |