org.ogre4j
Class Vector4

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Vector4
All Implemented Interfaces:
IVector4, INativeObject

public class Vector4
extends NativeObject
implements IVector4


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Vector4()
           
  Vector4(float fX, float fY, float fZ, float fW)
           
  Vector4(FloatPointer r)
           
  Vector4(InstancePointer p)
          This constructor is public for internal useage only!
protected Vector4(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Vector4(int afCoordinate)
           
  Vector4(IVector3 rhs)
           
  Vector4(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 float dotProduct(IVector4 vec)
          Calculates the dot (scalar) product of this vector with another.
 void finalize()
           
 float getw()
           
 float getx()
           
 float gety()
           
 float getz()
           
static IVector4 getZERO()
           
 IVector4 operatorAddition()
           
 void operatorAddition(IVector4 returnValue, IVector4 rkVector)
           
 IVector4 operatorAssignment(float fScalar)
           
 IVector4 operatorAssignment(IVector3 rhs)
           
 IVector4 operatorAssignment(IVector4 rkVector)
          Assigns the value of the other vector.
 IVector4 operatorDecrementAndAssign(float fScalar)
           
 IVector4 operatorDecrementAndAssign(IVector4 rkVector)
           
 IVector4 operatorDivideAndAssign(float fScalar)
           
 IVector4 operatorDivideAndAssign(IVector4 rkVector)
           
 void operatorDivision(IVector4 returnValue, float fScalar)
           
 void operatorDivision(IVector4 returnValue, IVector4 rhs)
           
 boolean operatorEqual(IVector4 rkVector)
           
 IVector4 operatorIncrementAndAssign(float fScalar)
           
 IVector4 operatorIncrementAndAssign(IVector4 rkVector)
           
 float operatorIndex_const(int i)
           
 FloatPointer operatorIndex(int i)
           
 void operatorMultiplication(IVector4 returnValue, float fScalar)
           
 void operatorMultiplication(IVector4 returnValue, IVector4 rhs)
           
 IVector4 operatorMultiplyAndAssign(float fScalar)
           
 IVector4 operatorMultiplyAndAssign(IVector4 rkVector)
           
 boolean operatorNotEqual(IVector4 rkVector)
           
 void operatorSubtraction(IVector4 returnValue)
           
 void operatorSubtraction(IVector4 returnValue, IVector4 rkVector)
           
 FloatPointer ptr_const()
           
 FloatPointer ptr()
           
 void setw(float _jni_value_)
           
 void setx(float _jni_value_)
           
 void sety(float _jni_value_)
           
 void setz(float _jni_value_)
           
 
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

Vector4

public Vector4(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


Vector4

protected Vector4(InstancePointer p,
                  boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


Vector4

public Vector4(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

Vector4

public Vector4()

Vector4

public Vector4(float fX,
               float fY,
               float fZ,
               float fW)

Vector4

public Vector4(int afCoordinate)

Vector4

public Vector4(FloatPointer r)

Vector4

public Vector4(IVector3 rhs)
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

operatorIndex_const

public float operatorIndex_const(int i)
Specified by:
operatorIndex_const in interface IVector4

operatorIndex

public FloatPointer operatorIndex(int i)
Specified by:
operatorIndex in interface IVector4

ptr

public FloatPointer ptr()
Specified by:
ptr in interface IVector4

ptr_const

public FloatPointer ptr_const()
Specified by:
ptr_const in interface IVector4

operatorAssignment

public IVector4 operatorAssignment(IVector4 rkVector)
Assigns the value of the other vector.

Specified by:
operatorAssignment in interface IVector4

operatorAssignment

public IVector4 operatorAssignment(float fScalar)
Specified by:
operatorAssignment in interface IVector4

operatorEqual

public boolean operatorEqual(IVector4 rkVector)
Specified by:
operatorEqual in interface IVector4

operatorNotEqual

public boolean operatorNotEqual(IVector4 rkVector)
Specified by:
operatorNotEqual in interface IVector4

operatorAssignment

public IVector4 operatorAssignment(IVector3 rhs)
Specified by:
operatorAssignment in interface IVector4

operatorAddition

public void operatorAddition(IVector4 returnValue,
                             IVector4 rkVector)
Specified by:
operatorAddition in interface IVector4

operatorSubtraction

public void operatorSubtraction(IVector4 returnValue,
                                IVector4 rkVector)
Specified by:
operatorSubtraction in interface IVector4

operatorMultiplication

public void operatorMultiplication(IVector4 returnValue,
                                   float fScalar)
Specified by:
operatorMultiplication in interface IVector4

operatorMultiplication

public void operatorMultiplication(IVector4 returnValue,
                                   IVector4 rhs)
Specified by:
operatorMultiplication in interface IVector4

operatorDivision

public void operatorDivision(IVector4 returnValue,
                             float fScalar)
Specified by:
operatorDivision in interface IVector4

operatorDivision

public void operatorDivision(IVector4 returnValue,
                             IVector4 rhs)
Specified by:
operatorDivision in interface IVector4

operatorAddition

public IVector4 operatorAddition()
Specified by:
operatorAddition in interface IVector4

operatorSubtraction

public void operatorSubtraction(IVector4 returnValue)
Specified by:
operatorSubtraction in interface IVector4

operatorIncrementAndAssign

public IVector4 operatorIncrementAndAssign(IVector4 rkVector)
Specified by:
operatorIncrementAndAssign in interface IVector4

operatorDecrementAndAssign

public IVector4 operatorDecrementAndAssign(IVector4 rkVector)
Specified by:
operatorDecrementAndAssign in interface IVector4

operatorMultiplyAndAssign

public IVector4 operatorMultiplyAndAssign(float fScalar)
Specified by:
operatorMultiplyAndAssign in interface IVector4

operatorIncrementAndAssign

public IVector4 operatorIncrementAndAssign(float fScalar)
Specified by:
operatorIncrementAndAssign in interface IVector4

operatorDecrementAndAssign

public IVector4 operatorDecrementAndAssign(float fScalar)
Specified by:
operatorDecrementAndAssign in interface IVector4

operatorMultiplyAndAssign

public IVector4 operatorMultiplyAndAssign(IVector4 rkVector)
Specified by:
operatorMultiplyAndAssign in interface IVector4

operatorDivideAndAssign

public IVector4 operatorDivideAndAssign(float fScalar)
Specified by:
operatorDivideAndAssign in interface IVector4

operatorDivideAndAssign

public IVector4 operatorDivideAndAssign(IVector4 rkVector)
Specified by:
operatorDivideAndAssign in interface IVector4

dotProduct

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

Specified by:
dotProduct in interface IVector4

getx

public float getx()
Specified by:
getx in interface IVector4

setx

public void setx(float _jni_value_)
Specified by:
setx in interface IVector4

gety

public float gety()
Specified by:
gety in interface IVector4

sety

public void sety(float _jni_value_)
Specified by:
sety in interface IVector4

getz

public float getz()
Specified by:
getz in interface IVector4

setz

public void setz(float _jni_value_)
Specified by:
setz in interface IVector4

getw

public float getw()
Specified by:
getw in interface IVector4

setw

public void setw(float _jni_value_)
Specified by:
setw in interface IVector4

getZERO

public static IVector4 getZERO()


Copyright © 2007 netAllied GmbH. All Rights Reserved.