@NoOffset @Properties(inherit=LinearMath.class) public class btTransform extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
btTransform()
\brief No initialization constructor
|
btTransform(btMatrix3x3 b) |
btTransform(btMatrix3x3 b,
btVector3 c)
\brief Constructor from btMatrix3x3 (optional btVector3)
|
btTransform(btQuaternion q) |
btTransform(btQuaternion q,
btVector3 c)
\brief Constructor from btQuaternion (optional btVector3 )
|
btTransform(btTransform other)
\brief Copy constructor
|
btTransform(long size)
Native array allocator.
|
btTransform(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
btVector3 |
apply(btVector3 x)
\brief Return the transform of the vector
|
void |
deSerialize(btTransformDoubleData dataIn) |
void |
deSerializeDouble(btTransformDoubleData dataIn) |
void |
deSerializeFloat(btTransformFloatData dataIn) |
btMatrix3x3 |
getBasis()
\brief Return the basis matrix for the rotation
|
static btTransform |
getIdentity()
\brief Return an identity transform
|
void |
getOpenGLMatrix(double[] m) |
void |
getOpenGLMatrix(DoubleBuffer m) |
void |
getOpenGLMatrix(DoublePointer m)
\brief Fill an array representation
|
btVector3 |
getOrigin()
\brief Return the origin vector translation
|
btTransform |
getPointer(long i) |
btQuaternion |
getRotation()
\brief Return a quaternion representing the rotation
|
btTransform |
inverse()
\brief Return the inverse of this transform
|
btTransform |
inverseTimes(btTransform t)
\brief Return the inverse of this transform times the other transform
|
btVector3 |
invXform(btVector3 inVec) |
void |
mult(btTransform t1,
btTransform t2)
\brief Set the current transform as the value of the product of two transforms
|
btQuaternion |
multiply(btQuaternion q)
\brief Return the transform of the btQuaternion
|
btTransform |
multiply(btTransform t)
\brief Return the product of this transform and the other
|
btVector3 |
multiply(btVector3 x)
\brief Return the transform of the vector
|
btTransform |
multiplyPut(btTransform t)
\brief Multiply this Transform by another(this = this * another)
|
btTransform |
position(long position) |
btTransform |
put(btTransform other)
\brief Assignment Operator
|
void |
serialize(btTransformDoubleData dataOut) |
void |
serializeFloat(btTransformFloatData dataOut) |
void |
setBasis(btMatrix3x3 basis)
\brief Set the rotational element by btMatrix3x3
|
void |
setFromOpenGLMatrix(double[] m) |
void |
setFromOpenGLMatrix(DoubleBuffer m) |
void |
setFromOpenGLMatrix(DoublePointer m)
\brief Set from an array
|
void |
setIdentity()
\brief Set this transformation to the identity
|
void |
setOrigin(btVector3 origin)
\brief Set the translational element
|
void |
setRotation(btQuaternion q)
\brief Set the rotational element by btQuaternion
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public btTransform(Pointer p)
Pointer(Pointer)
.public btTransform(long size)
Pointer.position(long)
.public btTransform()
public btTransform(@Const @ByRef btQuaternion q, @Const @ByRef(nullValue="btVector3(btScalar(0), btScalar(0), btScalar(0))") btVector3 c)
q
- Rotation from quaternionc
- Translation from Vector (default 0,0,0)public btTransform(@Const @ByRef btQuaternion q)
public btTransform(@Const @ByRef btMatrix3x3 b, @Const @ByRef(nullValue="btVector3(btScalar(0), btScalar(0), btScalar(0))") btVector3 c)
b
- Rotation from Matrixc
- Translation from Vector default (0,0,0)public btTransform(@Const @ByRef btMatrix3x3 b)
public btTransform(@Const @ByRef btTransform other)
public btTransform position(long position)
public btTransform getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public btTransform put(@Const @ByRef btTransform other)
public void mult(@Const @ByRef btTransform t1, @Const @ByRef btTransform t2)
t1
- Transform 1t2
- Transform 2
This = Transform1 * Transform2@ByVal @Name(value="operator ()") public btVector3 apply(@Const @ByRef btVector3 x)
@ByVal @Name(value="operator *") public btVector3 multiply(@Const @ByRef btVector3 x)
@ByVal @Name(value="operator *") public btQuaternion multiply(@Const @ByRef btQuaternion q)
@ByRef public btMatrix3x3 getBasis()
@ByVal public btQuaternion getRotation()
public void setFromOpenGLMatrix(@Cast(value="const btScalar*") DoublePointer m)
m
- A pointer to a 16 element array (12 rotation(row major padded on the right by 1), and 3 translationpublic void setFromOpenGLMatrix(@Cast(value="const btScalar*") DoubleBuffer m)
public void getOpenGLMatrix(@Cast(value="btScalar*") DoublePointer m)
m
- A pointer to a 16 element array (12 rotation(row major padded on the right by 1), and 3 translationpublic void getOpenGLMatrix(@Cast(value="btScalar*") DoubleBuffer m)
public void setOrigin(@Const @ByRef btVector3 origin)
origin
- The vector to set the translation topublic void setBasis(@Const @ByRef btMatrix3x3 basis)
public void setRotation(@Const @ByRef btQuaternion q)
public void setIdentity()
@ByRef @Name(value="operator *=") public btTransform multiplyPut(@Const @ByRef btTransform t)
t
- The other transform@ByVal public btTransform inverse()
@ByVal public btTransform inverseTimes(@Const @ByRef btTransform t)
t
- The other transform
return this.inverse() * the other@ByVal @Name(value="operator *") public btTransform multiply(@Const @ByRef btTransform t)
@Const @ByRef public static btTransform getIdentity()
public void serialize(@ByRef btTransformDoubleData dataOut)
public void serializeFloat(@ByRef btTransformFloatData dataOut)
public void deSerialize(@Const @ByRef btTransformDoubleData dataIn)
public void deSerializeDouble(@Const @ByRef btTransformDoubleData dataIn)
public void deSerializeFloat(@Const @ByRef btTransformFloatData dataIn)
Copyright © 2024. All rights reserved.