java.lang.Object
physx.NativeObject
physx.character.PxExtendedVec3
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
ConstructorsModifierConstructorDescriptionPxExtendedVec3(double x, double y, double z) protectedPxExtendedVec3(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxExtendedVec3arrayGet(long baseAddress, int index) static PxExtendedVec3createAt(long address) static PxExtendedVec3createAt(long address, double x, double y, double z) static <T> PxExtendedVec3createAt(T allocator, NativeObject.Allocator<T> allocate) static <T> PxExtendedVec3createAt(T allocator, NativeObject.Allocator<T> allocate, double x, double y, double z) voiddestroy()doublegetX()doublegetY()doublegetZ()voidsetX(double value) voidsetY(double value) voidsetZ(double value) static PxExtendedVec3wrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxExtendedVec3
protected PxExtendedVec3(long address) -
PxExtendedVec3
public PxExtendedVec3() -
PxExtendedVec3
public PxExtendedVec3(double x, double y, double z) - Parameters:
x- WebIDL type: doubley- WebIDL type: doublez- WebIDL type: double
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxExtendedVec3
-
createAt
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.- Returns:
- Stack allocated object of PxExtendedVec3
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.x- WebIDL type: doubley- WebIDL type: doublez- WebIDL type: double- Returns:
- Stack allocated object of PxExtendedVec3
-
createAt
public static <T> PxExtendedVec3 createAt(T allocator, NativeObject.Allocator<T> allocate, double x, double y, double z) - Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.x- WebIDL type: doubley- WebIDL type: doublez- WebIDL type: double- Returns:
- Stack allocated object of PxExtendedVec3
-
destroy
public void destroy() -
getX
public double getX()- Returns:
- WebIDL type: double
-
setX
public void setX(double value) - Parameters:
value- WebIDL type: double
-
getY
public double getY()- Returns:
- WebIDL type: double
-
setY
public void setY(double value) - Parameters:
value- WebIDL type: double
-
getZ
public double getZ()- Returns:
- WebIDL type: double
-
setZ
public void setZ(double value) - Parameters:
value- WebIDL type: double
-