java.lang.Object
physx.NativeObject
physx.geometry.PxHullPolygon
Polygon data
Plane format: (mPlane[0],mPlane[1],mPlane[2]).dot(x) + mPlane[3] = 0 With the normal outward-facing from the hull.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxHullPolygonarrayGet(long baseAddress, int index) static PxHullPolygoncreateAt(long address) static <T> PxHullPolygoncreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()shortOffset in index buffershortNumber of vertices/edges in the polygonfloatgetMPlane(int index) voidsetMIndexBase(short value) Offset in index buffervoidsetMNbVerts(short value) Number of vertices/edges in the polygonvoidsetMPlane(int index, float value) static PxHullPolygonwrapPointer(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
-
PxHullPolygon
protected PxHullPolygon(long address) -
PxHullPolygon
public PxHullPolygon()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxHullPolygon
-
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 PxHullPolygon
-
destroy
public void destroy() -
getMPlane
public float getMPlane(int index) - Parameters:
index- Array index- Returns:
- WebIDL type: float
-
setMPlane
public void setMPlane(int index, float value) - Parameters:
index- Array indexvalue- WebIDL type: float
-
getMNbVerts
public short getMNbVerts()Number of vertices/edges in the polygon -
setMNbVerts
public void setMNbVerts(short value) Number of vertices/edges in the polygon -
getMIndexBase
public short getMIndexBase()Offset in index buffer -
setMIndexBase
public void setMIndexBase(short value) Offset in index buffer
-