Class PxSphereGeometry


public class PxSphereGeometry extends PxGeometry
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxSphereGeometry

      protected PxSphereGeometry()
    • PxSphereGeometry

      protected PxSphereGeometry(long address)
    • PxSphereGeometry

      public PxSphereGeometry(float ir)
      Parameters:
      ir - WebIDL type: float
  • Method Details

    • wrapPointer

      public static PxSphereGeometry wrapPointer(long address)
    • arrayGet

      public static PxSphereGeometry arrayGet(long baseAddress, int index)
    • createAt

      public static PxSphereGeometry createAt(long address, float ir)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      ir - WebIDL type: float
      Returns:
      Stack allocated object of PxSphereGeometry
    • createAt

      public static <T> PxSphereGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, float ir)
      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.
      ir - WebIDL type: float
      Returns:
      Stack allocated object of PxSphereGeometry
    • destroy

      public void destroy()
      Overrides:
      destroy in class PxGeometry
    • getRadius

      public float getRadius()
      Returns:
      WebIDL type: float
    • setRadius

      public void setRadius(float value)
      Parameters:
      value - WebIDL type: float