|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVector1
| Method Summary | |
|---|---|
IVector1 |
add(IVector1 vector)
Adds another vector to this vector, adding individual components. |
Object |
clone()
Generates a deep clone of the vector. |
IVector1 |
copy()
Makes a copy of the vector without using the complex clone interface. |
IVector2 |
createVector2(IVector1 sec)
Create a vector2 from this and another vector. |
boolean |
equals(IVector1 vector)
Compares the vector to another vector. |
boolean |
equals(Object obj)
Compares the vector to an object |
BigDecimal |
getAsBigDecimal()
Returns the vector as BigDecimal. |
double |
getAsDouble()
Returns the vector as double. |
float |
getAsFloat()
Returns the vector as float. |
int |
getAsInteger()
Returns the vector as integer. |
long |
getAsLong()
Returns the vector as long. |
IVector1 |
getDistance(IVector1 vector)
Returns the distance to another vector |
boolean |
greater(IVector1 vector)
Tests if the vector is greater than another vector. |
boolean |
less(IVector1 vector)
Tests if the vector is less than another vector. |
IVector1 |
mod(IVector1 mod)
Calculate the modulo. |
IVector1 |
multiply(IVector1 vector)
Performs a multiplication on the vector. |
IVector1 |
negate()
Negates the vector by negating its components. |
IVector1 |
sqrt()
Calculate the square root. |
IVector1 |
subtract(IVector1 vector)
Subtracts another vector to this vector, subtracting individual components. |
IVector1 |
zero()
Sets the vector component to zero. |
| Method Detail |
|---|
IVector1 add(IVector1 vector)
vector - the vector to add to this vector
IVector1 subtract(IVector1 vector)
vector - the vector to subtract from this vector
IVector1 multiply(IVector1 vector)
vector - vector
IVector1 zero()
IVector1 negate()
IVector1 sqrt()
IVector1 mod(IVector1 mod)
IVector1 getDistance(IVector1 vector)
vector - other vector
int getAsInteger()
long getAsLong()
float getAsFloat()
double getAsDouble()
BigDecimal getAsBigDecimal()
IVector1 copy()
Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionboolean equals(Object obj)
equals in class Objectobj - the object
boolean equals(IVector1 vector)
vector - the other vector
boolean greater(IVector1 vector)
vector - the other vector
boolean less(IVector1 vector)
vector - the other vector
IVector2 createVector2(IVector1 sec)
sec - The second vector.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||