@Properties(inherit=liquidfun.class) public class b2Sweep extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
b2Sweep()
Default native constructor.
|
b2Sweep(long size)
Native array allocator.
|
b2Sweep(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
a() |
b2Sweep |
a(float setter) |
float |
a0()
world angles
|
b2Sweep |
a0(float setter) |
void |
Advance(float alpha)
Advance the sweep forward, yielding a new initial state.
|
float |
alpha0()
Fraction of the current time step in the range [0,1]
c0 and a0 are the positions at alpha0.
|
b2Sweep |
alpha0(float setter) |
b2Vec2 |
c() |
b2Sweep |
c(b2Vec2 setter) |
b2Vec2 |
c0()
center world positions
|
b2Sweep |
c0(b2Vec2 setter) |
void |
GetTransform(b2Transform xfb,
float beta)
Get the interpolated transform at a specific time.
|
b2Vec2 |
localCenter()
local center of mass position
|
b2Sweep |
localCenter(b2Vec2 setter) |
void |
Normalize()
Normalize the angles.
|
b2Sweep |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic b2Sweep()
public b2Sweep(long size)
Pointer.position(long).public b2Sweep(Pointer p)
Pointer.Pointer(Pointer).public void GetTransform(b2Transform xfb, @Cast(value="float32") float beta)
beta - is a factor in [0,1], where 0 indicates alpha0.public void Advance(@Cast(value="float32") float alpha)
alpha - the new initial time.public void Normalize()
public b2Sweep a0(float setter)
public b2Sweep a(float setter)
@Cast(value="float32") public float alpha0()
public b2Sweep alpha0(float setter)
Copyright © 2019. All rights reserved.