|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.application.space.envsupport.math.Vector1Long
public class Vector1Long
| Field Summary | |
|---|---|
static IVector1 |
ZERO
Zero vector |
| Constructor Summary | |
|---|---|
Vector1Long()
Creates a new vector. |
|
Vector1Long(long value)
Creates a new Vector1Long. |
|
| 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. |
int |
hashCode()
Compute the hash code. |
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. |
void |
setAsLong(long x)
|
IVector1 |
sqrt()
Calculate the square root. |
IVector1 |
subtract(IVector1 vector)
Subtracts another vector to this vector, subtracting individual components. |
String |
toString()
|
IVector1 |
zero()
Sets the vector component to zero. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final IVector1 ZERO
| Constructor Detail |
|---|
public Vector1Long(long value)
value - vector valuepublic Vector1Long()
| Method Detail |
|---|
public IVector1 add(IVector1 vector)
add in interface IVector1vector - the vector to add to this vector
public IVector1 subtract(IVector1 vector)
subtract in interface IVector1vector - the vector to subtract from this vector
public IVector1 multiply(IVector1 vector)
multiply in interface IVector1vector - vector
public IVector1 zero()
zero in interface IVector1public IVector1 negate()
negate in interface IVector1public IVector1 sqrt()
sqrt in interface IVector1public IVector1 mod(IVector1 mod)
mod in interface IVector1public IVector1 getDistance(IVector1 vector)
getDistance in interface IVector1vector - other vector
public int getAsInteger()
getAsInteger in interface IVector1public long getAsLong()
getAsLong in interface IVector1public void setAsLong(long x)
public float getAsFloat()
getAsFloat in interface IVector1public double getAsDouble()
getAsDouble in interface IVector1public BigDecimal getAsBigDecimal()
getAsBigDecimal in interface IVector1public IVector1 copy()
copy in interface IVector1
public Object clone()
throws CloneNotSupportedException
clone in interface IVector1clone in class ObjectCloneNotSupportedExceptionpublic boolean equals(Object obj)
equals in interface IVector1equals in class Objectobj - the object
public int hashCode()
hashCode in class Objectpublic boolean equals(IVector1 vector)
equals in interface IVector1vector - the other vector
public boolean greater(IVector1 vector)
greater in interface IVector1vector - the other vector
public boolean less(IVector1 vector)
less in interface IVector1vector - the other vector
public IVector2 createVector2(IVector1 sec)
createVector2 in interface IVector1sec - The second vector.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||