|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVector3
| Method Summary | |
|---|---|
float |
absDotProduct(IVector3 vec)
Calculates the absolute dot (scalar) product of this vector with another. |
void |
angleBetween(IRadian returnValue,
IVector3 dest)
Gets the angle between 2 vectors. |
void |
crossProduct(IVector3 returnValue,
IVector3 rkVector)
Calculates the cross-product of 2 vectors, i.e. the vector that lies perpendicular to them both. |
boolean |
directionEquals(IVector3 rhs,
IRadian tolerance)
Returns whether this vector is within a directional tolerance of another vector. |
float |
distance(IVector3 rhs)
Returns the distance to another vector. |
float |
dotProduct(IVector3 vec)
Calculates the dot (scalar) product of this vector with another. |
void |
getRotationTo(IQuaternion returnValue,
IVector3 dest,
IVector3 fallbackAxis)
Gets the shortest arc quaternion to rotate this vector to the destination vector. |
float |
getx()
|
float |
gety()
|
float |
getz()
|
boolean |
isZeroLength()
Returns true if this vector is zero length. |
float |
length()
Returns the length (magnitude) of the vector. |
void |
makeCeil(IVector3 cmp)
Sets this vector's components to the maximum of its own and the ones of the passed in vector. |
void |
makeFloor(IVector3 cmp)
Sets this vector's components to the minimum of its own and the ones of the passed in vector. |
void |
midPoint(IVector3 returnValue,
IVector3 vec)
Returns a vector at a point half way between this and the passed in vector. |
float |
normalise()
Normalises the vector. |
void |
normalisedCopy(IVector3 returnValue)
As normalise, except that this vector is unaffected and the normalised vector is returned as a copy. |
IVector3 |
operatorAddition()
|
void |
operatorAddition(IVector3 returnValue,
IVector3 rkVector)
|
IVector3 |
operatorAssignment(float fScaler)
|
IVector3 |
operatorAssignment(IVector3 rkVector)
Assigns the value of the other vector. |
IVector3 |
operatorDecrementAndAssign(float fScalar)
|
IVector3 |
operatorDecrementAndAssign(IVector3 rkVector)
|
IVector3 |
operatorDivideAndAssign(float fScalar)
|
IVector3 |
operatorDivideAndAssign(IVector3 rkVector)
|
void |
operatorDivision(IVector3 returnValue,
float fScalar)
|
void |
operatorDivision(IVector3 returnValue,
IVector3 rhs)
|
boolean |
operatorEqual(IVector3 rkVector)
|
boolean |
operatorGreaterThan(IVector3 rhs)
Returns true if the vector's scalar components are all smaller that the ones of the vector it is compared against. |
IVector3 |
operatorIncrementAndAssign(float fScalar)
|
IVector3 |
operatorIncrementAndAssign(IVector3 rkVector)
|
float |
operatorIndex_const(int i)
|
FloatPointer |
operatorIndex(int i)
|
boolean |
operatorLessThan(IVector3 rhs)
Returns true if the vector's scalar components are all greater that the ones of the vector it is compared against. |
void |
operatorMultiplication(IVector3 returnValue,
float fScalar)
|
void |
operatorMultiplication(IVector3 returnValue,
IVector3 rhs)
|
IVector3 |
operatorMultiplyAndAssign(float fScalar)
|
IVector3 |
operatorMultiplyAndAssign(IVector3 rkVector)
|
boolean |
operatorNotEqual(IVector3 rkVector)
|
void |
operatorSubtraction(IVector3 returnValue)
|
void |
operatorSubtraction(IVector3 returnValue,
IVector3 rkVector)
|
void |
perpendicular(IVector3 returnValue)
Generates a vector perpendicular to this vector (eg an 'up' vector). |
boolean |
positionCloses(IVector3 rhs,
float tolerance)
Returns whether this vector is within a positional tolerance of another vector, also take scale of the vectors into account. |
boolean |
positionEquals(IVector3 rhs,
float tolerance)
Returns whether this vector is within a positional tolerance of another vector. |
FloatPointer |
ptr_const()
|
FloatPointer |
ptr()
|
void |
randomDeviant(IVector3 returnValue,
IRadian angle,
IVector3 up)
Generates a new random vector which deviates from this vector by a given angle in a random direction. |
void |
reflect(IVector3 returnValue,
IVector3 normal)
Calculates a reflection vector to the plane with the given normal . |
void |
setx(float _jni_value_)
|
void |
sety(float _jni_value_)
|
void |
setz(float _jni_value_)
|
float |
squaredDistance(IVector3 rhs)
Returns the square of the distance to another vector. |
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()
IVector3 operatorAssignment(IVector3 rkVector)
IVector3 operatorAssignment(float fScaler)
boolean operatorEqual(IVector3 rkVector)
boolean operatorNotEqual(IVector3 rkVector)
void operatorAddition(IVector3 returnValue,
IVector3 rkVector)
void operatorSubtraction(IVector3 returnValue,
IVector3 rkVector)
void operatorMultiplication(IVector3 returnValue,
float fScalar)
void operatorMultiplication(IVector3 returnValue,
IVector3 rhs)
void operatorDivision(IVector3 returnValue,
float fScalar)
void operatorDivision(IVector3 returnValue,
IVector3 rhs)
IVector3 operatorAddition()
void operatorSubtraction(IVector3 returnValue)
IVector3 operatorIncrementAndAssign(IVector3 rkVector)
IVector3 operatorIncrementAndAssign(float fScalar)
IVector3 operatorDecrementAndAssign(IVector3 rkVector)
IVector3 operatorDecrementAndAssign(float fScalar)
IVector3 operatorMultiplyAndAssign(float fScalar)
IVector3 operatorMultiplyAndAssign(IVector3 rkVector)
IVector3 operatorDivideAndAssign(float fScalar)
IVector3 operatorDivideAndAssign(IVector3 rkVector)
float length()
float squaredLength()
float distance(IVector3 rhs)
float squaredDistance(IVector3 rhs)
float dotProduct(IVector3 vec)
float absDotProduct(IVector3 vec)
float normalise()
void crossProduct(IVector3 returnValue,
IVector3 rkVector)
void midPoint(IVector3 returnValue,
IVector3 vec)
boolean operatorLessThan(IVector3 rhs)
boolean operatorGreaterThan(IVector3 rhs)
void makeFloor(IVector3 cmp)
void makeCeil(IVector3 cmp)
void perpendicular(IVector3 returnValue)
void randomDeviant(IVector3 returnValue,
IRadian angle,
IVector3 up)
void angleBetween(IRadian returnValue,
IVector3 dest)
void getRotationTo(IQuaternion returnValue,
IVector3 dest,
IVector3 fallbackAxis)
boolean isZeroLength()
void normalisedCopy(IVector3 returnValue)
void reflect(IVector3 returnValue,
IVector3 normal)
boolean positionEquals(IVector3 rhs,
float tolerance)
boolean positionCloses(IVector3 rhs,
float tolerance)
boolean directionEquals(IVector3 rhs,
IRadian tolerance)
float getx()
void setx(float _jni_value_)
float gety()
void sety(float _jni_value_)
float getz()
void setz(float _jni_value_)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||