Package jadex.extension.envsupport.math
Interface IVector1
- 
- All Known Implementing Classes:
- Vector1Double,- Vector1Int,- Vector1Long
 
 public interface IVector1
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description IVector1add(IVector1 vector)Adds another vector to this vector, adding individual components.IVector1cbrt()Calculate the cube root.java.lang.Objectclone()Generates a deep clone of the vector.IVector1copy()Makes a copy of the vector without using the complex clone interface.IVector2createVector2(IVector1 sec)Create a vector2 from this and another vector.booleanequals(IVector1 vector)Compares the vector to another vector.booleanequals(java.lang.Object obj)Compares the vector to an objectjava.math.BigDecimalgetAsBigDecimal()Returns the vector as BigDecimal.doublegetAsDouble()Returns the vector as double.floatgetAsFloat()Returns the vector as float.intgetAsInteger()Returns the vector as integer.longgetAsLong()Returns the vector as long.IVector1getDistance(IVector1 vector)Returns the distance to another vectorbooleangreater(IVector1 vector)Tests if the vector is greater than another vector.booleanless(IVector1 vector)Tests if the vector is less than another vector.IVector1mod(IVector1 mod)IVector1multiply(IVector1 vector)Performs a multiplication on the vector.IVector1negate()Negates the vector by negating its components.IVector1sqrt()Calculate the square root.IVector1subtract(IVector1 vector)Subtracts another vector to this vector, subtracting individual components.IVector1zero()Sets the vector component to zero.
 
- 
- 
- 
Method Detail- 
addIVector1 add(IVector1 vector) Adds another vector to this vector, adding individual components.- Parameters:
- vector- the vector to add to this vector
- Returns:
- a reference to the called vector (NOT a copy)
 
 - 
subtractIVector1 subtract(IVector1 vector) Subtracts another vector to this vector, subtracting individual components.- Parameters:
- vector- the vector to subtract from this vector
- Returns:
- a reference to the called vector (NOT a copy)
 
 - 
multiplyIVector1 multiply(IVector1 vector) Performs a multiplication on the vector.- Parameters:
- vector- vector
- Returns:
- a reference to the called vector (NOT a copy)
 
 - 
zeroIVector1 zero() Sets the vector component to zero.- Returns:
- a reference to the called vector (NOT a copy)
 
 - 
negateIVector1 negate() Negates the vector by negating its components.- Returns:
- a reference to the called vector (NOT a copy)
 
 - 
sqrtIVector1 sqrt() Calculate the square root.- Returns:
- The square root.
 
 - 
cbrtIVector1 cbrt() Calculate the cube root.- Returns:
- The cube root.
 
 - 
getDistanceIVector1 getDistance(IVector1 vector) Returns the distance to another vector- Parameters:
- vector- other vector
- Returns:
- distance
 
 - 
getAsIntegerint getAsInteger() Returns the vector as integer.- Returns:
- vector as integer
 
 - 
getAsLonglong getAsLong() Returns the vector as long.- Returns:
- vector as long
 
 - 
getAsFloatfloat getAsFloat() Returns the vector as float.- Returns:
- vector as float
 
 - 
getAsDoubledouble getAsDouble() Returns the vector as double.- Returns:
- vector as double
 
 - 
getAsBigDecimaljava.math.BigDecimal getAsBigDecimal() Returns the vector as BigDecimal.- Returns:
- vector as BigDecimal
 
 - 
copyIVector1 copy() Makes a copy of the vector without using the complex clone interface.- Returns:
- copy of the vector
 
 - 
clonejava.lang.Object clone() throws java.lang.CloneNotSupportedExceptionGenerates a deep clone of the vector.- Returns:
- clone of this vector
- Throws:
- java.lang.CloneNotSupportedException
 
 - 
equalsboolean equals(java.lang.Object obj) Compares the vector to an object- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- obj- the object
- Returns:
- always returns false unless the object is an IVector2, in which case it is equivalent to equals(IVector vector)
 
 - 
equalsboolean equals(IVector1 vector) Compares the vector to another vector. The vectors are equal if the components are equal.- Parameters:
- vector- the other vector
- Returns:
- true if the vectors are equal
 
 - 
greaterboolean greater(IVector1 vector) Tests if the vector is greater than another vector.- Parameters:
- vector- the other vector
- Returns:
- true if the vector is greater than the given vector.
 
 - 
lessboolean less(IVector1 vector) Tests if the vector is less than another vector.- Parameters:
- vector- the other vector
- Returns:
- true if the vector is less than the given vector.
 
 
- 
 
-