@Properties(inherit=liquidfun.class) public class b2MassData extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2MassData()
Default native constructor.
|
b2MassData(long size)
Native array allocator.
|
b2MassData(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
b2Vec2 |
center()
The position of the shape's centroid relative to the shape's origin.
|
b2MassData |
center(b2Vec2 setter) |
b2MassData |
getPointer(long i) |
float |
I()
The rotational inertia of the shape about the local origin.
|
b2MassData |
I(float setter) |
float |
mass()
The mass of the shape, usually in kilograms.
|
b2MassData |
mass(float setter) |
b2MassData |
position(long position) |
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 b2MassData()
public b2MassData(long size)
Pointer.position(long)
.public b2MassData(Pointer p)
Pointer(Pointer)
.public b2MassData position(long position)
public b2MassData getPointer(long i)
getPointer
in class Pointer
public b2MassData mass(float setter)
@ByRef public b2Vec2 center()
public b2MassData center(b2Vec2 setter)
@Cast(value="float32") public float I()
public b2MassData I(float setter)
Copyright © 2022. All rights reserved.