public interface IVector3
Modifier and Type | Method and Description |
---|---|
IVector3 |
add(double scalar)
Adds a scalar to each component of this vector.
|
IVector3 |
add(IVector1 scalar)
Adds a scalar to each component of this vector.
|
IVector3 |
add(IVector3 vector)
Adds another vector to this vector, adding individual components.
|
IVector3 |
assign(IVector3 vector)
Assigns this vector the values of another vector.
|
Object |
clone()
Generates a deep clone of the vector.
|
IVector3 |
copy()
Makes a copy of the vector without using the complex clone interface.
|
IVector3 |
divide(IVector3 vector)
Performs a division on the vector.
|
boolean |
equals(IVector3 vector)
Compares the vector to another vector.
|
boolean |
equals(Object obj)
Compares the vector to an object
|
IVector2 |
getDirection()
Returns the direction (theta) of the vector.
|
IVector1 |
getDistance(IVector3 vector)
Returns the distance to another vector.
|
IVector1 |
getLength()
Returns the length (magnitude) of the vector.
|
IVector1 |
getX()
Returns the x-component of the vector.
|
BigDecimal |
getXAsBigDecimal()
Returns the x-component of the vector as BigDecimal.
|
double |
getXAsDouble()
Returns the x-component of the vector as double.
|
float |
getXAsFloat()
Returns the x-component of the vector as float.
|
int |
getXAsInteger()
Returns the x-component of the vector as integer.
|
long |
getXAsLong()
Returns the x-component of the vector as long.
|
IVector1 |
getY()
Returns the y-component of the vector.
|
BigDecimal |
getYAsBigDecimal()
Returns the component of the vector as BigDecima;.
|
double |
getYAsDouble()
Returns the component of the vector as double.
|
float |
getYAsFloat()
Returns the component of the vector as float.
|
int |
getYAsInteger()
Returns the component of the vector as integer.
|
long |
getYAsLong()
Returns the component of the vector as float.
|
IVector1 |
getZ()
Returns the z-component of the vector.
|
BigDecimal |
getZAsBigDecimal()
Returns the component of the vector as BigDecima;.
|
double |
getZAsDouble()
Returns the component of the vector as double.
|
float |
getZAsFloat()
Returns the component of the vector as float.
|
int |
getZAsInteger()
Returns the component of the vector as integer.
|
long |
getZAsLong()
Returns the component of the vector as float.
|
IVector3 |
mod(IVector3 modulus)
Applies a modulo vector.
|
IVector3 |
multiply(double scalar)
Performs a scalar multiplication (scaling) on the vector.
|
IVector3 |
multiply(IVector1 scalar)
Performs a scalar multiplication (scaling) on the vector.
|
IVector3 |
multiply(IVector3 vector)
Performs a multiplication on the vector.
|
IVector3 |
negate()
Negates the vector by negating its components.
|
IVector3 |
negateX()
Negates the x-component.
|
IVector3 |
negateY()
Negates the y-component.
|
IVector3 |
negateZ()
Negates the z-component.
|
IVector3 |
normalize()
Converts the vector to a unit vector (normalization)
|
IVector3 |
randomX(IVector1 lower,
IVector1 upper)
Sets the x-component to a random value in the interval [lower,upper]
|
IVector3 |
randomY(IVector1 lower,
IVector1 upper)
Sets the y-component to a random value in the interval [lower,upper]
|
IVector3 |
randomZ(IVector1 lower,
IVector1 upper)
Sets the z-component to a random value in the interval [lower,upper]
|
IVector3 |
subtract(double scalar)
Subtracts a scalar to each component of this vector.
|
IVector3 |
subtract(IVector1 scalar)
Subtracts a scalar to each component of this vector.
|
IVector3 |
subtract(IVector3 vector)
Subtracts another vector to this vector, subtracting individual components.
|
IVector3 |
zero()
Sets all vector components to zero.
|
IVector3 assign(IVector3 vector)
vector
- the other vectorIVector3 add(double scalar)
scalar
- scalar value as doubleIVector3 add(IVector1 scalar)
scalar
- scalar valueIVector3 add(IVector3 vector)
vector
- the vector to add to this vectorIVector3 subtract(double scalar)
scalar
- scalar value as doubleIVector3 subtract(IVector1 scalar)
scalar
- scalar valueIVector3 subtract(IVector3 vector)
vector
- the vector to subtract from this vectorIVector3 mod(IVector3 modulus)
modulus
- modulusIVector3 multiply(double scalar)
scalar
- the scale factor doubleIVector3 multiply(IVector1 scalar)
scalar
- the scale factorIVector3 multiply(IVector3 vector)
vector
- vectorIVector3 divide(IVector3 vector)
vector
- vectorIVector3 zero()
IVector3 negateX()
IVector3 negateY()
IVector3 negateZ()
IVector3 negate()
IVector3 randomX(IVector1 lower, IVector1 upper)
IVector3 randomY(IVector1 lower, IVector1 upper)
IVector3 randomZ(IVector1 lower, IVector1 upper)
IVector3 normalize()
IVector1 getLength()
IVector2 getDirection()
IVector1 getDistance(IVector3 vector)
vector
- other vectorIVector1 getX()
IVector1 getY()
IVector1 getZ()
int getXAsInteger()
int getYAsInteger()
int getZAsInteger()
long getXAsLong()
long getYAsLong()
long getZAsLong()
float getXAsFloat()
float getYAsFloat()
float getZAsFloat()
double getXAsDouble()
double getYAsDouble()
double getZAsDouble()
BigDecimal getXAsBigDecimal()
BigDecimal getYAsBigDecimal()
BigDecimal getZAsBigDecimal()
IVector3 copy()
Object clone() throws CloneNotSupportedException
CloneNotSupportedException
boolean equals(Object obj)
boolean equals(IVector3 vector)
vector
- the other vectorCopyright © 2015. All Rights Reserved.