edu.jhu.ece.iacl.jist.structures.vector
Interface VectorX

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
Vector2, Vector3, Vector4, VectorN

public interface VectorX
extends java.lang.Cloneable

The Interface VectorX.


Method Summary
 VectorX add(double a)
          Adds the.
 VectorX add(VectorX v)
          Adds the.
 VectorX clone()
          Clone.
 VectorX div(double a)
          Div.
 VectorX 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.
 VectorX mul(double a)
          Mul.
 VectorX mul(VectorX v)
          Mul.
 VectorX 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.
 VectorX sub(double a)
          Sub.
 VectorX sub(VectorX v)
          Sub.
 java.lang.Number[] toArray()
          To array.
 

Method Detail

toArray

java.lang.Number[] toArray()
To array.

Returns:
the number[]

size

int size()
Size.

Returns:
the int

get

java.lang.Number get(int i)
Gets the.

Parameters:
i - the i
Returns:
the number

getX

java.lang.Number getX()
Gets the x.

Returns:
the x

getY

java.lang.Number getY()
Gets the y.

Returns:
the y

getZ

java.lang.Number getZ()
Gets the z.

Returns:
the z

getW

java.lang.Number getW()
Gets the w.

Returns:
the w

mag

java.lang.Number mag()
Mag.

Returns:
the number

setX

void setX(java.lang.Number x)
Sets the x.

Parameters:
x - the new x

setY

void setY(java.lang.Number y)
Sets the y.

Parameters:
y - the new y

setZ

void setZ(java.lang.Number z)
Sets the z.

Parameters:
z - the new z

setW

void setW(java.lang.Number w)
Sets the w.

Parameters:
w - the new w

set

void set(java.lang.Number value,
         int i)
Sets the.

Parameters:
value - the value
i - the i

add

VectorX add(double a)
Adds the.

Parameters:
a - the a
Returns:
the vector x

sub

VectorX sub(double a)
Sub.

Parameters:
a - the a
Returns:
the vector x

mul

VectorX mul(double a)
Mul.

Parameters:
a - the a
Returns:
the vector x

div

VectorX div(double a)
Div.

Parameters:
a - the a
Returns:
the vector x

add

VectorX add(VectorX v)
Adds the.

Parameters:
v - the v
Returns:
the vector x

sub

VectorX sub(VectorX v)
Sub.

Parameters:
v - the v
Returns:
the vector x

mul

VectorX mul(VectorX v)
Mul.

Parameters:
v - the v
Returns:
the vector x

div

VectorX div(VectorX v)
Div.

Parameters:
v - the v
Returns:
the vector x

normalize

VectorX normalize()
Normalize.

Returns:
the vector x

clone

VectorX clone()
Clone.

Returns:
the vector x