Most visited

Recently visited

BoundingBox

public class BoundingBox
extends Object

java.lang.Object
   ↳ com.viro.core.BoundingBox


BoundingBox defines an axis-aligned 6-sided bounding volume.

Summary

Fields

public float maxX

The maximum X value.

public float maxY

The maximum Y value.

public float maxZ

The maximum Z value.

public float minX

The minimum X value.

public float minY

The minimum Y value.

public float minZ

The minimum Z value.

Public constructors

BoundingBox(float minX, float maxX, float minY, float maxY, float minZ, float maxZ)

Constructs a new BoundingBox with the given bounds on each axis.

BoundingBox(float[] bounds)

Construct a new bounding box given a float array containing 6 elements representing the bounds.

Public methods

String toString()

Fields

maxX

float maxX

The maximum X value.

maxY

float maxY

The maximum Y value.

maxZ

float maxZ

The maximum Z value.

minX

float minX

The minimum X value.

minY

float minY

The minimum Y value.

minZ

float minZ

The minimum Z value.

Public constructors

BoundingBox

BoundingBox (float minX, 
                float maxX, 
                float minY, 
                float maxY, 
                float minZ, 
                float maxZ)

Constructs a new BoundingBox with the given bounds on each axis.

Parameters
minX float: The minimum X value.

maxX float: The maximum X value.

minY float: The minimum Y value.

maxY float: The maximum Y value.

minZ float: The minimum Z value.

maxZ float: The maximum Z value.

BoundingBox

BoundingBox (float[] bounds)

Construct a new bounding box given a float array containing 6 elements representing the bounds.

Parameters
bounds float: The bounds on each axis, in order [minX, maxX, minY, maxY, minZ, maxZ].

Public methods

toString

String toString ()

Returns
String

Hooray!