Class Bounds

java.lang.Object
com.codename1.ui.scene.Bounds

public class Bounds extends Object
Encapsulates bounds in a 3D space.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Bounds(double minX, double minY, double minZ, double width, double height, double depth)
    Parameters
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets the depth of the bounding cube along z-axis.
    double
    Gets the height of the bounding cube along y-axis).
    double
    Gets min X coordinate of bounding cube.
    double
    Gets the min Y coordinate of bounding cube.
    double
    Sets the min Z coordinate of bounding cube.
    double
    Gets the width of the bounding cube (along x-axis)
    void
    setDepth(double depth)
    Sets the depth of the bounding cube along z-axis
    void
    setHeight(double height)
    Sets the height of the bounding cube along y-axis.
    void
    setMinX(double minX)
    Sets min X coordinate of bounding cube.
    void
    setMinY(double minY)
    Sets the min Y coordinate of bounding cube.
    void
    setMinZ(double minZ)
    Sets the min Z coordinate of the bounding cube.
    void
    setWidth(double width)
    Sets the width of the bouding cube along x-axis.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    Modifier and Type
    Method
    Description
    protected Object
     
    boolean
    Indicates whether some other object is "equal to" this one.
    final Class
    Returns the runtime class of an object.
    int
    Returns a hash code value for the object.
    final void
    Wakes up a single thread that is waiting on this object's monitor.
    final void
    Wakes up all threads that are waiting on this object's monitor.
    Returns a string representation of the object.
    final void
    Causes current thread to wait until another thread invokes the method or the method for this object.
    final void
    wait(long timeout)
    Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.
    final void
    wait(long timeout, int nanos)
    Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
  • Constructor Details

    • Bounds

      public Bounds(double minX, double minY, double minZ, double width, double height, double depth)
      Parameters
      • minX

      • minY

      • minZ

      • width

      • height

      • depth

  • Method Details

    • getMinX

      public double getMinX()

      Gets min X coordinate of bounding cube.

      Returns

      the minX

    • setMinX

      public void setMinX(double minX)

      Sets min X coordinate of bounding cube.

      Parameters
      • minX: the minX to set
    • getMinY

      public double getMinY()

      Gets the min Y coordinate of bounding cube.

      Returns

      the minY

    • setMinY

      public void setMinY(double minY)

      Sets the min Y coordinate of bounding cube.

      Parameters
      • minY: the minY to set
    • getMinZ

      public double getMinZ()

      Sets the min Z coordinate of bounding cube.

      Returns

      the minZ

    • setMinZ

      public void setMinZ(double minZ)

      Sets the min Z coordinate of the bounding cube.

      Parameters
      • minZ: the minZ to set
    • getWidth

      public double getWidth()

      Gets the width of the bounding cube (along x-axis)

      Returns

      the width

    • setWidth

      public void setWidth(double width)

      Sets the width of the bouding cube along x-axis.

      Parameters
      • width: the width to set
    • getHeight

      public double getHeight()

      Gets the height of the bounding cube along y-axis).

      Returns

      the height

    • setHeight

      public void setHeight(double height)

      Sets the height of the bounding cube along y-axis.

      Parameters
      • height: the height to set
    • getDepth

      public double getDepth()

      Gets the depth of the bounding cube along z-axis.

      Returns

      the depth

    • setDepth

      public void setDepth(double depth)

      Sets the depth of the bounding cube along z-axis

      Parameters
      • depth: the depth to set