@NoOffset @Properties(inherit=liquidfun.class) public class b2Transform extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2Transform()
The default constructor does nothing.
|
b2Transform(b2Vec2 _position,
b2Rot rotation)
Initialize using a position vector and a rotation.
|
b2Transform(long size)
Native array allocator.
|
b2Transform(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
b2Transform |
getPointer(long i) |
float |
GetPositionX()
Get x-coordinate of p.
|
float |
GetPositionY()
Get y-coordinate of p.
|
float |
GetRotationCos()
Get cosine-component of q.
|
float |
GetRotationSin()
Get sine-component of q.
|
b2Vec2 |
p() |
b2Transform |
p(b2Vec2 setter) |
b2Transform |
position(long position) |
b2Rot |
q() |
b2Transform |
q(b2Rot setter) |
void |
Set(b2Vec2 _position,
float angle)
Set this based on the position and angle.
|
void |
SetIdentity()
Set this to the identity transform.
|
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 b2Transform(Pointer p)
Pointer(Pointer)
.public b2Transform(long size)
Pointer.position(long)
.public b2Transform()
public b2Transform position(long position)
public b2Transform getPointer(long i)
getPointer
in class Pointer
public void SetIdentity()
public void Set(@Const @ByRef b2Vec2 _position, @Cast(value="float32") float angle)
public b2Transform p(b2Vec2 setter)
public b2Transform q(b2Rot setter)
Copyright © 2022. All rights reserved.