APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.physics.bullet.linearmath

public Class btVector3

extends BulletBase
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.physics.bullet.linearmath.btVector4, com.badlogic.gdx.physics.bullet.linearmath.GrahamVector3
Imports
com.badlogic.gdx.physics.bullet.BulletBase, com.badlogic.gdx.math.Vector3

Field Summary

Modifier and TypeField and Description
private long
Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
classNamedestroyedswigCMemOwn

Constructor Summary

AccessConstructor and Description
protected
btVector3(final String className, long cPtr, boolean cMemoryOwn)

public
btVector3(long cPtr, boolean cMemoryOwn)

Construct a new btVector3, normally you should not need this constructor it's intended for low-level usage.

public
public
btVector3(float _x, float _y, float _z)

Method Summary

Modifier and TypeMethod and Description
public Vector3
public float
public int
public Vector3
protected synchronized void
delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates.

public void
public void
public void
public float
public float
public float
public Vector3
protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

public int
public boolean
public static long
public float[]
public void
public float
getX()

public float
getY()

public float
getZ()

public boolean
public float
public float
public Vector3
lerp(Vector3 v, float t)

public int
public int
maxDot(btVector3 array, int array_count, SWIGTYPE_p_float dotOut)

public int
public int
minDot(btVector3 array, int array_count, SWIGTYPE_p_float dotOut)

public float
norm()

public Vector3
public Vector3
public Vector3
public FloatBuffer
public FloatBuffer
public void
operatorDelete(long ptr)

public void
operatorDelete(long arg0, long arg1)

public void
public void
operatorDeleteArray(long arg0, long arg1)

public Vector3
public boolean
public Vector3
public Vector3
public long
operatorNew(long sizeInBytes)

public long
operatorNew(long arg0, long ptr)

public long
operatorNewArray(long sizeInBytes)

public long
operatorNewArray(long arg0, long ptr)

public boolean
public Vector3
protected void
reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

public Vector3
rotate(Vector3 wAxis, float angle)

public float
public Vector3
public void
public void
public void
public void
setFloats(float[] value)

public void
setInterpolate3(Vector3 v0, Vector3 v1, float rt)

public void
setMax(Vector3 other)

public void
setMin(Vector3 other)

public void
setValue(float _x, float _y, float _z)

public void
setW(float _w)

public void
setX(float _x)

public void
setY(float _y)

public void
setZ(float _z)

public void
public float
public float
w()

public float
x()

public float
y()

public float
z()

Inherited from com.badlogic.gdx.physics.bullet.BulletBase:
constructdestroydisposeequalsgetCPointerhashCodehasOwnershipisDisposedisObtainedobtainreleasereleaseOwnershiptakeOwnershiptoString

Field Detail

swigCPtrback to summary
private long swigCPtr

Constructor Detail

btVector3back to summary
protected btVector3(final String className, long cPtr, boolean cMemoryOwn)
btVector3back to summary
public btVector3(long cPtr, boolean cMemoryOwn)

Construct a new btVector3, normally you should not need this constructor it's intended for low-level usage.

btVector3back to summary
public btVector3()
btVector3back to summary
public btVector3(float _x, float _y, float _z)

Method Detail

absoluteback to summary
public Vector3 absolute()
angleback to summary
public float angle(Vector3 v)
closestAxisback to summary
public int closestAxis()
crossback to summary
public Vector3 cross(Vector3 v)
deleteback to summary
protected synchronized void delete()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.delete.

Doc from com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates. Do not call directly, instead use the dispose() method.

Annotations
@Override
deSerializeback to summary
public void deSerialize(btVector3FloatData dataIn)
deSerializeDoubleback to summary
public void deSerializeDouble(btVector3DoubleData dataIn)
deSerializeFloatback to summary
public void deSerializeFloat(btVector3FloatData dataIn)
distanceback to summary
public float distance(Vector3 v)
distance2back to summary
public float distance2(Vector3 v)
dotback to summary
public float dot(Vector3 v)
dot3back to summary
public Vector3 dot3(Vector3 v0, Vector3 v1, Vector3 v2)
finalizeback to summary
protected void finalize() throws Throwable

Overrides com.badlogic.gdx.physics.bullet.BulletBase.finalize.

Doc from java.lang.Object.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

When running in a Java virtual machine in which finalization has been disabled or removed, the garbage collector will never call finalize(). In a Java virtual machine in which finalization is enabled, the garbage collector might call finalize only after an indefinite delay.

The general contract of finalize is that it is invoked if and when the Java virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.

The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.

The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.

After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.

The finalize method is never invoked more than once by a Java virtual machine for any given object.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

Annotations
@Override
Exceptions
Throwable:
the Exception raised by this method
furthestAxisback to summary
public int furthestAxis()
fuzzyZeroback to summary
public boolean fuzzyZero()
getCPtrback to summary
public static long getCPtr(btVector3 obj)
getFloatsback to summary
public float[] getFloats()
getSkewSymmetricMatrixback to summary
public void getSkewSymmetricMatrix(btVector3 v0, btVector3 v1, btVector3 v2)
getXback to summary
public float getX()
getYback to summary
public float getY()
getZback to summary
public float getZ()
isZeroback to summary
public boolean isZero()
lengthback to summary
public float length()
length2back to summary
public float length2()
lerpback to summary
public Vector3 lerp(Vector3 v, float t)
maxAxisback to summary
public int maxAxis()
maxDotback to summary
public int maxDot(btVector3 array, int array_count, SWIGTYPE_p_float dotOut)
minAxisback to summary
public int minAxis()
minDotback to summary
public int minDot(btVector3 array, int array_count, SWIGTYPE_p_float dotOut)
normback to summary
public float norm()
normalizeback to summary
public Vector3 normalize()
normalizedback to summary
public Vector3 normalized()
operatorAdditionAssignmentback to summary
public Vector3 operatorAdditionAssignment(Vector3 v)
operatorbtConstScalarPtrback to summary
public FloatBuffer operatorbtConstScalarPtr()
operatorbtScalarPtrback to summary
public FloatBuffer operatorbtScalarPtr()
operatorDeleteback to summary
public void operatorDelete(long ptr)
operatorDeleteback to summary
public void operatorDelete(long arg0, long arg1)
operatorDeleteArrayback to summary
public void operatorDeleteArray(long ptr)
operatorDeleteArrayback to summary
public void operatorDeleteArray(long arg0, long arg1)
operatorDivisionAssignmentback to summary
public Vector3 operatorDivisionAssignment(float s)
operatorEqualToback to summary
public boolean operatorEqualTo(Vector3 other)
operatorMultiplicationAssignmentback to summary
public Vector3 operatorMultiplicationAssignment(float s)
operatorMultiplicationAssignmentback to summary
public Vector3 operatorMultiplicationAssignment(Vector3 v)
operatorNewback to summary
public long operatorNew(long sizeInBytes)
operatorNewback to summary
public long operatorNew(long arg0, long ptr)
operatorNewArrayback to summary
public long operatorNewArray(long sizeInBytes)
operatorNewArrayback to summary
public long operatorNewArray(long arg0, long ptr)
operatorNotEqualToback to summary
public boolean operatorNotEqualTo(Vector3 other)
operatorSubtractionAssignmentback to summary
public Vector3 operatorSubtractionAssignment(Vector3 v)
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.BulletBase.reset.

Annotations
@Override
rotateback to summary
public Vector3 rotate(Vector3 wAxis, float angle)
safeNormback to summary
public float safeNorm()
safeNormalizeback to summary
public Vector3 safeNormalize()
serializeback to summary
public void serialize(btVector3FloatData dataOut)
serializeDoubleback to summary
public void serializeDouble(btVector3DoubleData dataOut)
serializeFloatback to summary
public void serializeFloat(btVector3FloatData dataOut)
setFloatsback to summary
public void setFloats(float[] value)
setInterpolate3back to summary
public void setInterpolate3(Vector3 v0, Vector3 v1, float rt)
setMaxback to summary
public void setMax(Vector3 other)
setMinback to summary
public void setMin(Vector3 other)
setValueback to summary
public void setValue(float _x, float _y, float _z)
setWback to summary
public void setW(float _w)
setXback to summary
public void setX(float _x)
setYback to summary
public void setY(float _y)
setZback to summary
public void setZ(float _z)
setZeroback to summary
public void setZero()
tripleback to summary
public float triple(Vector3 v1, Vector3 v2)
wback to summary
public float w()
xback to summary
public float x()
yback to summary
public float y()
zback to summary
public float z()