|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 numsMethod Detail |
---|
public java.lang.Number[] toArray()
VectorX
toArray
in interface VectorX
public int size()
VectorX
size
in interface VectorX
public java.lang.Number get(int i)
VectorX
get
in interface VectorX
i
- the i
public java.lang.Number getX()
VectorX
getX
in interface VectorX
public java.lang.Number getY()
VectorX
getY
in interface VectorX
public java.lang.Number getZ()
VectorX
getZ
in interface VectorX
public java.lang.Number getW()
VectorX
getW
in interface VectorX
public java.lang.Number mag()
VectorX
mag
in interface VectorX
public void setX(java.lang.Number x)
VectorX
setX
in interface VectorX
x
- the new xpublic void setY(java.lang.Number y)
VectorX
setY
in interface VectorX
y
- the new ypublic void setZ(java.lang.Number z)
VectorX
setZ
in interface VectorX
z
- the new zpublic void setW(java.lang.Number w)
VectorX
setW
in interface VectorX
w
- the new wpublic void set(java.lang.Number value, int i)
VectorX
set
in interface VectorX
value
- the valuei
- the ipublic VectorN add(double a)
VectorX
add
in interface VectorX
a
- the a
public VectorN sub(double a)
VectorX
sub
in interface VectorX
a
- the a
public VectorN mul(double a)
VectorX
mul
in interface VectorX
a
- the a
public VectorN div(double a)
VectorX
div
in interface VectorX
a
- the a
public VectorN add(VectorX v)
VectorX
add
in interface VectorX
v
- the v
public VectorN sub(VectorX v)
VectorX
sub
in interface VectorX
v
- the v
public VectorN mul(VectorX v)
VectorX
mul
in interface VectorX
v
- the v
public VectorN div(VectorX v)
VectorX
div
in interface VectorX
v
- the v
public VectorN normalize()
VectorX
normalize
in interface VectorX
public VectorN clone()
VectorX
clone
in interface VectorX
clone
in class java.lang.Object
public 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 |