public interface IVector1
Modifier and Type | Method and Description |
---|---|
IVector1 |
add(IVector1 vector)
Adds another vector to this vector, adding individual components.
|
IVector1 |
cbrt()
Calculate the cube root.
|
java.lang.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(java.lang.Object obj)
Compares the vector to an object
|
java.math.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) |
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.
|
IVector1 add(IVector1 vector)
vector
- the vector to add to this vectorIVector1 subtract(IVector1 vector)
vector
- the vector to subtract from this vectorIVector1 multiply(IVector1 vector)
vector
- vectorIVector1 zero()
IVector1 negate()
IVector1 sqrt()
IVector1 cbrt()
IVector1 getDistance(IVector1 vector)
vector
- other vectorint getAsInteger()
long getAsLong()
float getAsFloat()
double getAsDouble()
java.math.BigDecimal getAsBigDecimal()
IVector1 copy()
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the objectboolean equals(IVector1 vector)
vector
- the other vectorboolean greater(IVector1 vector)
vector
- the other vectorboolean less(IVector1 vector)
vector
- the other vector