BoundingBox

class BoundingBox(val delegate: BoundingBox) extends Bounds with SFXDelegate[BoundingBox]
Companion
object
class Bounds
trait SFXDelegate[BoundingBox]
class Object
trait Matchable
class Any

Value members

Constructors

def this(minX: Double, minY: Double, width: Double, height: Double)

Creates a new instance of 2D BoundingBox.

Creates a new instance of 2D BoundingBox.

def this(minX: Double, minY: Double, minZ: Double, width: Double, height: Double, depth: Double)

Creates a new instance of 3D BoundingBox.

Creates a new instance of 3D BoundingBox.

Inherited methods

def centerX: Double

The central x coordinate of this Bounds.

The central x coordinate of this Bounds.

Returns

the central x coordinate This call is equivalent to

(getMaxX() + getMinX())/2.0
Since

11

Inherited from
Bounds
def centerY: Double

The central y coordinate of this Bounds.

The central y coordinate of this Bounds.

Returns

the central y coordinate This call is equivalent to

(getMaxY() + getMinY())/2.0
Since

11

Inherited from
Bounds
def centerZ: Double

The central z coordinate of this Bounds.

The central z coordinate of this Bounds.

Returns

the central z coordinate This call is equivalent to

(getMaxZ() + getMinZ())/2.0
Since

11

Inherited from
Bounds
def contains(p: Point3D): Boolean

Tests if the specified point is inside the boundary of Bounds.

Tests if the specified point is inside the boundary of Bounds.

Inherited from
Bounds
def contains(p: Point2D): Boolean

Tests if the specified point is inside the boundary of Bounds.

Tests if the specified point is inside the boundary of Bounds.

Inherited from
Bounds
def contains(x: Double, y: Double, z: Double, w: Double, h: Double, d: Double): Boolean

Tests if the interior of this Bounds entirely contains the specified rectangular area.

Tests if the interior of this Bounds entirely contains the specified rectangular area.

Inherited from
Bounds
def contains(x: Double, y: Double, w: Double, h: Double): Boolean

Tests if the interior of this Bounds entirely contains the specified rectangular area.

Tests if the interior of this Bounds entirely contains the specified rectangular area.

Inherited from
Bounds
def contains(x: Double, y: Double, z: Double): Boolean

Tests if the specified (x, y, z) coordinates are inside the boundary of Bounds.

Tests if the specified (x, y, z) coordinates are inside the boundary of Bounds.

Inherited from
Bounds
def contains(x: Double, y: Double): Boolean

Tests if the specified (x, y) coordinates are inside the boundary of Bounds.

Tests if the specified (x, y) coordinates are inside the boundary of Bounds.

Inherited from
Bounds
def contains(b: Bounds): Boolean

Tests if the interior of this Bounds entirely contains the specified Bounds, b.

Tests if the interior of this Bounds entirely contains the specified Bounds, b.

Inherited from
Bounds
def depth: Double

The depth of this Bounds.

The depth of this Bounds.

Inherited from
Bounds
def empty: Boolean

Indicates whether any of the dimensions(width, height or depth) of this bounds is less than zero.

Indicates whether any of the dimensions(width, height or depth) of this bounds is less than zero.

Inherited from
Bounds
override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
def height: Double

The height of this Bounds.

The height of this Bounds.

Inherited from
Bounds
def intersects(x: Double, y: Double, z: Double, w: Double, h: Double, d: Double): Boolean

Tests if the interior of this Bounds intersects the interior of a specified rectangular area.

Tests if the interior of this Bounds intersects the interior of a specified rectangular area.

Inherited from
Bounds
def intersects(x: Double, y: Double, w: Double, h: Double): Boolean

Tests if the interior of this Bounds intersects the interior of a specified rectangular area.

Tests if the interior of this Bounds intersects the interior of a specified rectangular area.

Inherited from
Bounds
def intersects(b: Bounds): Boolean

Tests if the interior of this Bounds intersects the interior of a specified Bounds, b.

Tests if the interior of this Bounds intersects the interior of a specified Bounds, b.

Inherited from
Bounds
def maxX: Double

The x coordinate of the lower-right corner of this Bounds.

The x coordinate of the lower-right corner of this Bounds.

Inherited from
Bounds
def maxY: Double

The y coordinate of the lower-right corner of this Bounds.

The y coordinate of the lower-right corner of this Bounds.

Inherited from
Bounds
def maxZ: Double

The maximum z coordinate of this Bounds.

The maximum z coordinate of this Bounds.

Inherited from
Bounds
def minX: Double

The x coordinate of the upper-left corner of this Bounds.

The x coordinate of the upper-left corner of this Bounds.

Inherited from
Bounds
def minY: Double

The y coordinate of the upper-left corner of this Bounds.

The y coordinate of the upper-left corner of this Bounds.

Inherited from
Bounds
def minZ: Double

The minimum z coordinate of this Bounds.

The minimum z coordinate of this Bounds.

Inherited from
Bounds
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate
def width: Double

The width of this Bounds.

The width of this Bounds.

Inherited from
Bounds

Concrete fields

override val delegate: BoundingBox