@NoOffset @Properties(inherit=liquidfun.class) public class b2Vec3 extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
b2Vec3()
Default constructor does nothing (for performance).
|
b2Vec3(float x,
float y,
float z)
Construct using coordinates.
|
b2Vec3(long size)
Native array allocator.
|
b2Vec3(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPut(b2Vec3 v)
Add a vector to this vector.
|
b2Vec3 |
getPointer(long i) |
float |
Length()
Get the length of this vector (the norm).
|
void |
multiplyPut(float s)
Multiply this vector by a scalar.
|
float |
Normalize()
Convert this vector into a unit vector.
|
b2Vec3 |
position(long position) |
void |
Set(float x_,
float y_,
float z_)
Set this vector to some specified coordinates.
|
void |
SetZero()
Set this vector to all zeros.
|
b2Vec3 |
subtract()
Negate this vector.
|
void |
subtractPut(b2Vec3 v)
Subtract a vector from this vector.
|
float |
x() |
b2Vec3 |
x(float setter) |
float |
y() |
b2Vec3 |
y(float setter) |
float |
z() |
b2Vec3 |
z(float 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 b2Vec3(Pointer p)
Pointer(Pointer)
.public b2Vec3(long size)
Pointer.position(long)
.public b2Vec3()
public b2Vec3 getPointer(long i)
getPointer
in class Pointer
public void SetZero()
public void Set(@Cast(value="float32") float x_, @Cast(value="float32") float y_, @Cast(value="float32") float z_)
@Name(value="operator +=") public void addPut(@Const @ByRef b2Vec3 v)
@Name(value="operator -=") public void subtractPut(@Const @ByRef b2Vec3 v)
@Name(value="operator *=") public void multiplyPut(@Cast(value="float32") float s)
@Cast(value="float32") public float Normalize()
public b2Vec3 x(float setter)
public b2Vec3 y(float setter)
public b2Vec3 z(float setter)
Copyright © 2022. All rights reserved.