|
|||||||||
| 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.VectorN
public class VectorN
The Class VectorN.
| Constructor Summary | |
|---|---|
VectorN(int size)
Instantiates a new vector n. |
|
VectorN(java.lang.Number[] nums)
Instantiates a new vector n. |
|
| Method Summary | |
|---|---|
VectorN |
add(double a)
Adds the. |
VectorN |
add(VectorX v)
Adds the. |
VectorN |
clone()
Clone. |
VectorN |
div(double a)
Div. |
VectorN |
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. |
VectorN |
mul(double a)
Mul. |
VectorN |
mul(VectorX v)
Mul. |
VectorN |
normalize()
Normalize. |
void |
set(java.lang.Number value,
int i)
Sets the. |
void |
setW(java.lang.Number w)
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. |
VectorN |
sub(double a)
Sub. |
VectorN |
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 VectorN(int size)
size - the sizepublic VectorN(java.lang.Number[] nums)
nums - the nums| Method Detail |
|---|
public java.lang.Number[] toArray()
VectorX
toArray in interface VectorXpublic int size()
VectorX
size in interface VectorXpublic 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 java.lang.Number getW()
VectorX
getW in interface VectorXpublic java.lang.Number mag()
VectorX
mag 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 w)
VectorX
setW in interface VectorXw - the new w
public void set(java.lang.Number value,
int i)
VectorX
set in interface VectorXvalue - the valuei - the ipublic VectorN add(double a)
VectorX
add in interface VectorXa - the a
public VectorN sub(double a)
VectorX
sub in interface VectorXa - the a
public VectorN mul(double a)
VectorX
mul in interface VectorXa - the a
public VectorN div(double a)
VectorX
div in interface VectorXa - the a
public VectorN add(VectorX v)
VectorX
add in interface VectorXv - the v
public VectorN sub(VectorX v)
VectorX
sub in interface VectorXv - the v
public VectorN mul(VectorX v)
VectorX
mul in interface VectorXv - the v
public VectorN div(VectorX v)
VectorX
div in interface VectorXv - the v
public VectorN normalize()
VectorX
normalize in interface VectorXpublic VectorN clone()
VectorX
clone in interface VectorXclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||