|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Vector3
public class Vector3
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Vector3()
|
|
Vector3(float fX,
float fY,
float fZ)
|
|
Vector3(FloatPointer r)
|
|
Vector3(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Vector3(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Vector3(int afCoordinate)
|
|
Vector3(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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. |
void |
delete()
Deletes the corresponding C++ object. |
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 |
finalize()
|
static IVector3 |
getNEGATIVE_UNIT_X()
|
static IVector3 |
getNEGATIVE_UNIT_Y()
|
static IVector3 |
getNEGATIVE_UNIT_Z()
|
void |
getRotationTo(IQuaternion returnValue,
IVector3 dest,
IVector3 fallbackAxis)
Gets the shortest arc quaternion to rotate this vector to the destination vector. |
static IVector3 |
getUNIT_SCALE()
|
static IVector3 |
getUNIT_X()
|
static IVector3 |
getUNIT_Y()
|
static IVector3 |
getUNIT_Z()
|
float |
getx()
|
float |
gety()
|
float |
getz()
|
static IVector3 |
getZERO()
|
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 class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Vector3(InstancePointer p)
protected Vector3(InstancePointer p,
boolean remote)
public Vector3(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Vector3()
public Vector3(float fX,
float fY,
float fZ)
public Vector3(int afCoordinate)
public Vector3(FloatPointer r)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic float operatorIndex_const(int i)
operatorIndex_const in interface IVector3public FloatPointer operatorIndex(int i)
operatorIndex in interface IVector3public FloatPointer ptr()
ptr in interface IVector3public FloatPointer ptr_const()
ptr_const in interface IVector3public IVector3 operatorAssignment(IVector3 rkVector)
operatorAssignment in interface IVector3public IVector3 operatorAssignment(float fScaler)
operatorAssignment in interface IVector3public boolean operatorEqual(IVector3 rkVector)
operatorEqual in interface IVector3public boolean operatorNotEqual(IVector3 rkVector)
operatorNotEqual in interface IVector3
public void operatorAddition(IVector3 returnValue,
IVector3 rkVector)
operatorAddition in interface IVector3
public void operatorSubtraction(IVector3 returnValue,
IVector3 rkVector)
operatorSubtraction in interface IVector3
public void operatorMultiplication(IVector3 returnValue,
float fScalar)
operatorMultiplication in interface IVector3
public void operatorMultiplication(IVector3 returnValue,
IVector3 rhs)
operatorMultiplication in interface IVector3
public void operatorDivision(IVector3 returnValue,
float fScalar)
operatorDivision in interface IVector3
public void operatorDivision(IVector3 returnValue,
IVector3 rhs)
operatorDivision in interface IVector3public IVector3 operatorAddition()
operatorAddition in interface IVector3public void operatorSubtraction(IVector3 returnValue)
operatorSubtraction in interface IVector3public IVector3 operatorIncrementAndAssign(IVector3 rkVector)
operatorIncrementAndAssign in interface IVector3public IVector3 operatorIncrementAndAssign(float fScalar)
operatorIncrementAndAssign in interface IVector3public IVector3 operatorDecrementAndAssign(IVector3 rkVector)
operatorDecrementAndAssign in interface IVector3public IVector3 operatorDecrementAndAssign(float fScalar)
operatorDecrementAndAssign in interface IVector3public IVector3 operatorMultiplyAndAssign(float fScalar)
operatorMultiplyAndAssign in interface IVector3public IVector3 operatorMultiplyAndAssign(IVector3 rkVector)
operatorMultiplyAndAssign in interface IVector3public IVector3 operatorDivideAndAssign(float fScalar)
operatorDivideAndAssign in interface IVector3public IVector3 operatorDivideAndAssign(IVector3 rkVector)
operatorDivideAndAssign in interface IVector3public float length()
length in interface IVector3public float squaredLength()
squaredLength in interface IVector3public float distance(IVector3 rhs)
distance in interface IVector3public float squaredDistance(IVector3 rhs)
squaredDistance in interface IVector3public float dotProduct(IVector3 vec)
dotProduct in interface IVector3public float absDotProduct(IVector3 vec)
absDotProduct in interface IVector3public float normalise()
normalise in interface IVector3
public void crossProduct(IVector3 returnValue,
IVector3 rkVector)
crossProduct in interface IVector3
public void midPoint(IVector3 returnValue,
IVector3 vec)
midPoint in interface IVector3public boolean operatorLessThan(IVector3 rhs)
operatorLessThan in interface IVector3public boolean operatorGreaterThan(IVector3 rhs)
operatorGreaterThan in interface IVector3public void makeFloor(IVector3 cmp)
makeFloor in interface IVector3public void makeCeil(IVector3 cmp)
makeCeil in interface IVector3public void perpendicular(IVector3 returnValue)
perpendicular in interface IVector3
public void randomDeviant(IVector3 returnValue,
IRadian angle,
IVector3 up)
randomDeviant in interface IVector3
public void angleBetween(IRadian returnValue,
IVector3 dest)
angleBetween in interface IVector3
public void getRotationTo(IQuaternion returnValue,
IVector3 dest,
IVector3 fallbackAxis)
getRotationTo in interface IVector3public boolean isZeroLength()
isZeroLength in interface IVector3public void normalisedCopy(IVector3 returnValue)
normalisedCopy in interface IVector3
public void reflect(IVector3 returnValue,
IVector3 normal)
reflect in interface IVector3
public boolean positionEquals(IVector3 rhs,
float tolerance)
positionEquals in interface IVector3
public boolean positionCloses(IVector3 rhs,
float tolerance)
positionCloses in interface IVector3
public boolean directionEquals(IVector3 rhs,
IRadian tolerance)
directionEquals in interface IVector3public float getx()
getx in interface IVector3public void setx(float _jni_value_)
setx in interface IVector3public float gety()
gety in interface IVector3public void sety(float _jni_value_)
sety in interface IVector3public float getz()
getz in interface IVector3public void setz(float _jni_value_)
setz in interface IVector3public static IVector3 getZERO()
public static IVector3 getUNIT_X()
public static IVector3 getUNIT_Y()
public static IVector3 getUNIT_Z()
public static IVector3 getNEGATIVE_UNIT_X()
public static IVector3 getNEGATIVE_UNIT_Y()
public static IVector3 getNEGATIVE_UNIT_Z()
public static IVector3 getUNIT_SCALE()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||