org.ogre4j
Interface IVector3

All Superinterfaces:
INativeObject
All Known Implementing Classes:
Vector3

public interface IVector3
extends INativeObject


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

operatorIndex_const

float operatorIndex_const(int i)

operatorIndex

FloatPointer operatorIndex(int i)

ptr

FloatPointer ptr()

ptr_const

FloatPointer ptr_const()

operatorAssignment

IVector3 operatorAssignment(IVector3 rkVector)
Assigns the value of the other vector.


operatorAssignment

IVector3 operatorAssignment(float fScaler)

operatorEqual

boolean operatorEqual(IVector3 rkVector)

operatorNotEqual

boolean operatorNotEqual(IVector3 rkVector)

operatorAddition

void operatorAddition(IVector3 returnValue,
                      IVector3 rkVector)

operatorSubtraction

void operatorSubtraction(IVector3 returnValue,
                         IVector3 rkVector)

operatorMultiplication

void operatorMultiplication(IVector3 returnValue,
                            float fScalar)

operatorMultiplication

void operatorMultiplication(IVector3 returnValue,
                            IVector3 rhs)

operatorDivision

void operatorDivision(IVector3 returnValue,
                      float fScalar)

operatorDivision

void operatorDivision(IVector3 returnValue,
                      IVector3 rhs)

operatorAddition

IVector3 operatorAddition()

operatorSubtraction

void operatorSubtraction(IVector3 returnValue)

operatorIncrementAndAssign

IVector3 operatorIncrementAndAssign(IVector3 rkVector)

operatorIncrementAndAssign

IVector3 operatorIncrementAndAssign(float fScalar)

operatorDecrementAndAssign

IVector3 operatorDecrementAndAssign(IVector3 rkVector)

operatorDecrementAndAssign

IVector3 operatorDecrementAndAssign(float fScalar)

operatorMultiplyAndAssign

IVector3 operatorMultiplyAndAssign(float fScalar)

operatorMultiplyAndAssign

IVector3 operatorMultiplyAndAssign(IVector3 rkVector)

operatorDivideAndAssign

IVector3 operatorDivideAndAssign(float fScalar)

operatorDivideAndAssign

IVector3 operatorDivideAndAssign(IVector3 rkVector)

length

float length()
Returns the length (magnitude) of the vector.


squaredLength

float squaredLength()
Returns the square of the length(magnitude) of the vector.


distance

float distance(IVector3 rhs)
Returns the distance to another vector.


squaredDistance

float squaredDistance(IVector3 rhs)
Returns the square of the distance to another vector.


dotProduct

float dotProduct(IVector3 vec)
Calculates the dot (scalar) product of this vector with another.


absDotProduct

float absDotProduct(IVector3 vec)
Calculates the absolute dot (scalar) product of this vector with another.


normalise

float normalise()
Normalises the vector.


crossProduct

void crossProduct(IVector3 returnValue,
                  IVector3 rkVector)
Calculates the cross-product of 2 vectors, i.e. the vector that lies perpendicular to them both.


midPoint

void midPoint(IVector3 returnValue,
              IVector3 vec)
Returns a vector at a point half way between this and the passed in vector.


operatorLessThan

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.


operatorGreaterThan

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.


makeFloor

void makeFloor(IVector3 cmp)
Sets this vector's components to the minimum of its own and the ones of the passed in vector.


makeCeil

void makeCeil(IVector3 cmp)
Sets this vector's components to the maximum of its own and the ones of the passed in vector.


perpendicular

void perpendicular(IVector3 returnValue)
Generates a vector perpendicular to this vector (eg an 'up' vector).


randomDeviant

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.


angleBetween

void angleBetween(IRadian returnValue,
                  IVector3 dest)
Gets the angle between 2 vectors.


getRotationTo

void getRotationTo(IQuaternion returnValue,
                   IVector3 dest,
                   IVector3 fallbackAxis)
Gets the shortest arc quaternion to rotate this vector to the destination vector.


isZeroLength

boolean isZeroLength()
Returns true if this vector is zero length.


normalisedCopy

void normalisedCopy(IVector3 returnValue)
As normalise, except that this vector is unaffected and the normalised vector is returned as a copy.


reflect

void reflect(IVector3 returnValue,
             IVector3 normal)
Calculates a reflection vector to the plane with the given normal .


positionEquals

boolean positionEquals(IVector3 rhs,
                       float tolerance)
Returns whether this vector is within a positional tolerance of another vector.


positionCloses

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.


directionEquals

boolean directionEquals(IVector3 rhs,
                        IRadian tolerance)
Returns whether this vector is within a directional tolerance of another vector.


getx

float getx()

setx

void setx(float _jni_value_)

gety

float gety()

sety

void sety(float _jni_value_)

getz

float getz()

setz

void setz(float _jni_value_)


Copyright © 2007 netAllied GmbH. All Rights Reserved.