Class PxSphereGeometry


  • public class PxSphereGeometry
    extends PxGeometry
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxSphereGeometry

        protected PxSphereGeometry()
      • PxSphereGeometry

        protected PxSphereGeometry​(long address)
      • PxSphereGeometry

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

      • 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