|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jhu.ece.iacl.jist.structures.vector.Vector3
public class Vector3
The Class Vector3.
| Constructor Summary | |
|---|---|
Vector3()
Instantiates a new vector3. |
|
Vector3(java.lang.Number[] m)
Instantiates a new vector3. |
|
Vector3(java.lang.Number x,
java.lang.Number y,
java.lang.Number z)
Instantiates a new vector3. |
|
| Method Summary | |
|---|---|
Vector3 |
add(double a)
Adds the. |
Vector3 |
add(VectorX v)
Adds the. |
Vector3 |
clone()
Clone. |
Vector3 |
div(double a)
Div. |
Vector3 |
div(VectorX v)
Div. |
java.lang.Number |
get(int i)
Gets the. |
java.lang.Number |
getW()
Gets the w. |
java.lang.Number |
getX()
Gets the x. |
java.lang.Number |
getY()
Gets the y. |
java.lang.Number |
getZ()
Gets the z. |
java.lang.Number |
mag()
Mag. |
Vector3 |
mul(double a)
Mul. |
Vector3 |
mul(VectorX v)
Mul. |
Vector3 |
normalize()
Normalize. |
static Vector3 |
round(Vector3 v,
int prec)
Round. |
void |
set(java.lang.Number value,
int i)
Sets the. |
void |
set(Vector3 v)
Sets the. |
void |
setW(java.lang.Number z)
Sets the w. |
void |
setX(java.lang.Number x)
Sets the x. |
void |
setY(java.lang.Number y)
Sets the y. |
void |
setZ(java.lang.Number z)
Sets the z. |
int |
size()
Size. |
Vector3 |
sub(double a)
Sub. |
Vector3 |
sub(VectorX v)
Sub. |
java.lang.Number[] |
toArray()
To array. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Vector3(java.lang.Number[] m)
m - the m
public Vector3(java.lang.Number x,
java.lang.Number y,
java.lang.Number z)
x - the xy - the yz - the zpublic Vector3()
| Method Detail |
|---|
public int size()
VectorX
size in interface VectorX
public static Vector3 round(Vector3 v,
int prec)
v - the vprec - the prec
public java.lang.Number get(int i)
VectorX
get in interface VectorXi - the i
public java.lang.Number getX()
VectorX
getX in interface VectorXpublic java.lang.Number getY()
VectorX
getY in interface VectorXpublic java.lang.Number getZ()
VectorX
getZ in interface VectorXpublic void setX(java.lang.Number x)
VectorX
setX in interface VectorXx - the new xpublic void setY(java.lang.Number y)
VectorX
setY in interface VectorXy - the new ypublic void setZ(java.lang.Number z)
VectorX
setZ in interface VectorXz - the new zpublic void setW(java.lang.Number z)
VectorX
setW in interface VectorXz - the new wpublic java.lang.Number[] toArray()
VectorX
toArray in interface VectorXpublic Vector3 add(double a)
VectorX
add in interface VectorXa - the a
public Vector3 sub(double a)
VectorX
sub in interface VectorXa - the a
public Vector3 mul(double a)
VectorX
mul in interface VectorXa - the a
public Vector3 div(double a)
VectorX
div in interface VectorXa - the a
public Vector3 add(VectorX v)
VectorX
add in interface VectorXv - the v
public Vector3 sub(VectorX v)
VectorX
sub in interface VectorXv - the v
public Vector3 mul(VectorX v)
VectorX
mul in interface VectorXv - the v
public Vector3 div(VectorX v)
VectorX
div in interface VectorXv - the v
public java.lang.Number getW()
VectorX
getW in interface VectorXpublic void set(Vector3 v)
v - the vpublic Vector3 normalize()
VectorX
normalize in interface VectorXpublic java.lang.Number mag()
VectorX
mag in interface VectorXpublic Vector3 clone()
VectorX
clone in interface VectorXclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public void set(java.lang.Number value,
int i)
VectorX
set in interface VectorXvalue - the valuei - the i
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||