Package physx.common

Class PxBounds3

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxBounds3

        protected PxBounds3​(long address)
      • PxBounds3

        public PxBounds3()
      • PxBounds3

        public PxBounds3​(PxVec3 minimum,
                         PxVec3 maximum)
        Parameters:
        minimum - WebIDL type: PxVec3 [Const, Ref]
        maximum - WebIDL type: PxVec3 [Const, Ref]
    • Method Detail

      • wrapPointer

        public static PxBounds3 wrapPointer​(long address)
      • createAt

        public static PxBounds3 createAt​(long address)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        Returns:
        Stack allocated object of PxBounds3
      • createAt

        public static <T> PxBounds3 createAt​(T allocator,
                                             NativeObject.Allocator<T> allocate)
        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 PxBounds3
      • createAt

        public static PxBounds3 createAt​(long address,
                                         PxVec3 minimum,
                                         PxVec3 maximum)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        minimum - WebIDL type: PxVec3 [Const, Ref]
        maximum - WebIDL type: PxVec3 [Const, Ref]
        Returns:
        Stack allocated object of PxBounds3
      • createAt

        public static <T> PxBounds3 createAt​(T allocator,
                                             NativeObject.Allocator<T> allocate,
                                             PxVec3 minimum,
                                             PxVec3 maximum)
        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.
        minimum - WebIDL type: PxVec3 [Const, Ref]
        maximum - WebIDL type: PxVec3 [Const, Ref]
        Returns:
        Stack allocated object of PxBounds3
      • destroy

        public void destroy()
      • getMinimum

        public PxVec3 getMinimum()
        Returns:
        WebIDL type: PxVec3 [Value]
      • setMinimum

        public void setMinimum​(PxVec3 value)
        Parameters:
        value - WebIDL type: PxVec3 [Value]
      • getMaximum

        public PxVec3 getMaximum()
        Returns:
        WebIDL type: PxVec3 [Value]
      • setMaximum

        public void setMaximum​(PxVec3 value)
        Parameters:
        value - WebIDL type: PxVec3 [Value]
      • setEmpty

        public void setEmpty()
      • setMaximal

        public void setMaximal()
      • include

        public void include​(PxVec3 v)
        Parameters:
        v - WebIDL type: PxVec3 [Const, Ref]
      • isEmpty

        public boolean isEmpty()
        Returns:
        WebIDL type: boolean
      • intersects

        public boolean intersects​(PxBounds3 b)
        Parameters:
        b - WebIDL type: PxBounds3 [Const, Ref]
        Returns:
        WebIDL type: boolean
      • intersects1D

        public boolean intersects1D​(PxBounds3 b,
                                    int axis)
        Parameters:
        b - WebIDL type: PxBounds3 [Const, Ref]
        axis - WebIDL type: unsigned long
        Returns:
        WebIDL type: boolean
      • contains

        public boolean contains​(PxVec3 v)
        Parameters:
        v - WebIDL type: PxVec3 [Const, Ref]
        Returns:
        WebIDL type: boolean
      • isInside

        public boolean isInside​(PxBounds3 box)
        Parameters:
        box - WebIDL type: PxBounds3 [Const, Ref]
        Returns:
        WebIDL type: boolean
      • getCenter

        public PxVec3 getCenter()
        Returns:
        WebIDL type: PxVec3 [Value]
      • getDimensions

        public PxVec3 getDimensions()
        Returns:
        WebIDL type: PxVec3 [Value]
      • getExtents

        public PxVec3 getExtents()
        Returns:
        WebIDL type: PxVec3 [Value]
      • scaleSafe

        public void scaleSafe​(float scale)
        Parameters:
        scale - WebIDL type: float
      • scaleFast

        public void scaleFast​(float scale)
        Parameters:
        scale - WebIDL type: float
      • fattenSafe

        public void fattenSafe​(float distance)
        Parameters:
        distance - WebIDL type: float
      • fattenFast

        public void fattenFast​(float distance)
        Parameters:
        distance - WebIDL type: float
      • isFinite

        public boolean isFinite()
        Returns:
        WebIDL type: boolean
      • isValid

        public boolean isValid()
        Returns:
        WebIDL type: boolean