org.ogre4j
Interface IVector2

All Superinterfaces:
INativeObject
All Known Implementing Classes:
Vector2

public interface IVector2
extends INativeObject


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

operatorIndex_const

float operatorIndex_const(int i)

operatorIndex

FloatPointer operatorIndex(int i)

ptr

FloatPointer ptr()

ptr_const

FloatPointer ptr_const()

operatorAssignment

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


operatorAssignment

IVector2 operatorAssignment(float fScalar)

operatorEqual

boolean operatorEqual(IVector2 rkVector)

operatorNotEqual

boolean operatorNotEqual(IVector2 rkVector)

operatorAddition

void operatorAddition(IVector2 returnValue,
                      IVector2 rkVector)

operatorSubtraction

void operatorSubtraction(IVector2 returnValue,
                         IVector2 rkVector)

operatorMultiplication

void operatorMultiplication(IVector2 returnValue,
                            float fScalar)

operatorMultiplication

void operatorMultiplication(IVector2 returnValue,
                            IVector2 rhs)

operatorDivision

void operatorDivision(IVector2 returnValue,
                      float fScalar)

operatorDivision

void operatorDivision(IVector2 returnValue,
                      IVector2 rhs)

operatorAddition

IVector2 operatorAddition()

operatorSubtraction

void operatorSubtraction(IVector2 returnValue)

operatorIncrementAndAssign

IVector2 operatorIncrementAndAssign(IVector2 rkVector)

operatorIncrementAndAssign

IVector2 operatorIncrementAndAssign(float fScaler)

operatorDecrementAndAssign

IVector2 operatorDecrementAndAssign(IVector2 rkVector)

operatorDecrementAndAssign

IVector2 operatorDecrementAndAssign(float fScaler)

operatorMultiplyAndAssign

IVector2 operatorMultiplyAndAssign(float fScalar)

operatorMultiplyAndAssign

IVector2 operatorMultiplyAndAssign(IVector2 rkVector)

operatorDivideAndAssign

IVector2 operatorDivideAndAssign(float fScalar)

operatorDivideAndAssign

IVector2 operatorDivideAndAssign(IVector2 rkVector)

length

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


squaredLength

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


dotProduct

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


normalise

float normalise()
Normalises the vector.


midPoint

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


operatorLessThan

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.


operatorGreaterThan

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.


makeFloor

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


makeCeil

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


perpendicular

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


crossProduct

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.


randomDeviant

void randomDeviant(IVector2 returnValue,
                   float angle)
Generates a new random vector which deviates from this vector by a given angle in a random direction.


isZeroLength

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


normalisedCopy

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


reflect

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


getx

float getx()

setx

void setx(float _jni_value_)

gety

float gety()

sety

void sety(float _jni_value_)


Copyright © 2007 netAllied GmbH. All Rights Reserved.