@Properties(inherit=liquidfun.class) public class b2AABB extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2AABB()
Default native constructor.
|
b2AABB(long size)
Native array allocator.
|
b2AABB(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Combine(b2AABB aabb)
Combine an AABB into this one.
|
void |
Combine(b2AABB aabb1,
b2AABB aabb2)
Combine two AABBs into this one.
|
boolean |
Contains(b2AABB aabb)
Does this aabb contain the provided AABB.
|
b2Vec2 |
GetCenter()
Get the center of the AABB.
|
b2Vec2 |
GetExtents()
Get the extents of the AABB (half-widths).
|
float |
GetPerimeter()
Get the perimeter length
|
b2AABB |
getPointer(long i) |
boolean |
IsValid()
Verify that the bounds are sorted.
|
b2Vec2 |
lowerBound()
the lower vertex
|
b2AABB |
lowerBound(b2Vec2 setter) |
b2AABB |
position(long position) |
boolean |
RayCast(b2RayCastOutput output,
b2RayCastInput input) |
b2Vec2 |
upperBound()
the upper vertex
|
b2AABB |
upperBound(b2Vec2 setter) |
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 b2AABB()
public b2AABB(long size)
Pointer.position(long)
.public b2AABB(Pointer p)
Pointer(Pointer)
.public b2AABB getPointer(long i)
getPointer
in class Pointer
public void Combine(@Const @ByRef b2AABB aabb1, @Const @ByRef b2AABB aabb2)
@Cast(value="bool") public boolean Contains(@Const @ByRef b2AABB aabb)
@Cast(value="bool") public boolean RayCast(b2RayCastOutput output, @Const @ByRef b2RayCastInput input)
Copyright © 2022. All rights reserved.