|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVector2
| Method Summary | |
|---|---|
float |
crossProduct(IVector2 rkVector)
Calculates the 2 dimensional cross-product of 2 vectors, which results in a single floating point value which is 2 times the area of the triangle. |
float |
dotProduct(IVector2 vec)
Calculates the dot (scalar) product of this vector with another. |
float |
getx()
|
float |
gety()
|
boolean |
isZeroLength()
Returns true if this vector is zero length. |
float |
length()
Returns the length (magnitude) of the vector. |
void |
makeCeil(IVector2 cmp)
Sets this vector's components to the maximum of its own and the ones of the passed in vector. |
void |
makeFloor(IVector2 cmp)
Sets this vector's components to the minimum of its own and the ones of the passed in vector. |
void |
midPoint(IVector2 returnValue,
IVector2 vec)
Returns a vector at a point half way between this and the passed in vector. |
float |
normalise()
Normalises the vector. |
void |
normalisedCopy(IVector2 returnValue)
As normalise, except that this vector is unaffected and the normalised vector is returned as a copy. |
IVector2 |
operatorAddition()
|
void |
operatorAddition(IVector2 returnValue,
IVector2 rkVector)
|
IVector2 |
operatorAssignment(float fScalar)
|
IVector2 |
operatorAssignment(IVector2 rkVector)
Assigns the value of the other vector. |
IVector2 |
operatorDecrementAndAssign(float fScaler)
|
IVector2 |
operatorDecrementAndAssign(IVector2 rkVector)
|
IVector2 |
operatorDivideAndAssign(float fScalar)
|
IVector2 |
operatorDivideAndAssign(IVector2 rkVector)
|
void |
operatorDivision(IVector2 returnValue,
float fScalar)
|
void |
operatorDivision(IVector2 returnValue,
IVector2 rhs)
|
boolean |
operatorEqual(IVector2 rkVector)
|
boolean |
operatorGreaterThan(IVector2 rhs)
Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against. |
IVector2 |
operatorIncrementAndAssign(float fScaler)
|
IVector2 |
operatorIncrementAndAssign(IVector2 rkVector)
|
float |
operatorIndex_const(int i)
|
FloatPointer |
operatorIndex(int i)
|
boolean |
operatorLessThan(IVector2 rhs)
Returns true if the vector's scalar components are all greater that the ones of the vector it is compared against. |
void |
operatorMultiplication(IVector2 returnValue,
float fScalar)
|
void |
operatorMultiplication(IVector2 returnValue,
IVector2 rhs)
|
IVector2 |
operatorMultiplyAndAssign(float fScalar)
|
IVector2 |
operatorMultiplyAndAssign(IVector2 rkVector)
|
boolean |
operatorNotEqual(IVector2 rkVector)
|
void |
operatorSubtraction(IVector2 returnValue)
|
void |
operatorSubtraction(IVector2 returnValue,
IVector2 rkVector)
|
void |
perpendicular(IVector2 returnValue)
Generates a vector perpendicular to this vector (eg an 'up' vector). |
FloatPointer |
ptr_const()
|
FloatPointer |
ptr()
|
void |
randomDeviant(IVector2 returnValue,
float angle)
Generates a new random vector which deviates from this vector by a given angle in a random direction. |
void |
reflect(IVector2 returnValue,
IVector2 normal)
Calculates a reflection vector to the plane with the given normal . |
void |
setx(float _jni_value_)
|
void |
sety(float _jni_value_)
|
float |
squaredLength()
Returns the square of the length(magnitude) of the vector. |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
float operatorIndex_const(int i)
FloatPointer operatorIndex(int i)
FloatPointer ptr()
FloatPointer ptr_const()
IVector2 operatorAssignment(IVector2 rkVector)
IVector2 operatorAssignment(float fScalar)
boolean operatorEqual(IVector2 rkVector)
boolean operatorNotEqual(IVector2 rkVector)
void operatorAddition(IVector2 returnValue,
IVector2 rkVector)
void operatorSubtraction(IVector2 returnValue,
IVector2 rkVector)
void operatorMultiplication(IVector2 returnValue,
float fScalar)
void operatorMultiplication(IVector2 returnValue,
IVector2 rhs)
void operatorDivision(IVector2 returnValue,
float fScalar)
void operatorDivision(IVector2 returnValue,
IVector2 rhs)
IVector2 operatorAddition()
void operatorSubtraction(IVector2 returnValue)
IVector2 operatorIncrementAndAssign(IVector2 rkVector)
IVector2 operatorIncrementAndAssign(float fScaler)
IVector2 operatorDecrementAndAssign(IVector2 rkVector)
IVector2 operatorDecrementAndAssign(float fScaler)
IVector2 operatorMultiplyAndAssign(float fScalar)
IVector2 operatorMultiplyAndAssign(IVector2 rkVector)
IVector2 operatorDivideAndAssign(float fScalar)
IVector2 operatorDivideAndAssign(IVector2 rkVector)
float length()
float squaredLength()
float dotProduct(IVector2 vec)
float normalise()
void midPoint(IVector2 returnValue,
IVector2 vec)
boolean operatorLessThan(IVector2 rhs)
boolean operatorGreaterThan(IVector2 rhs)
void makeFloor(IVector2 cmp)
void makeCeil(IVector2 cmp)
void perpendicular(IVector2 returnValue)
float crossProduct(IVector2 rkVector)
void randomDeviant(IVector2 returnValue,
float angle)
boolean isZeroLength()
void normalisedCopy(IVector2 returnValue)
void reflect(IVector2 returnValue,
IVector2 normal)
float getx()
void setx(float _jni_value_)
float gety()
void sety(float _jni_value_)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||