Most visited

Recently visited

Box

public class Box
extends Geometry

java.lang.Object
   ↳ com.viro.core.Geometry
     ↳ com.viro.core.Box


Box is a simple shape representing a six-sided geometry, defined by width, height, and length.

Summary

Public constructors

Box(float width, float height, float length)

Construct a new Box with the given width, height, and length.

Public methods

void dispose()

Release native resources associated with this Box.

float getHeight()

Get the height of this Box.

float getLength()

Get the length of this Box.

float getWidth()

Get the width of this Box.

void setHeight(float height)

Set the height of this Box.

void setLength(float length)

Set the length of this Box.

void setWidth(float width)

Set the width of this Box.

Public constructors

Box

Box (float width, 
                float height, 
                float length)

Construct a new Box with the given width, height, and length.

Parameters
width float: The width of the box (X dimension).

height float: The height of the box (Y dimension).

length float: The length of the box (Z dimension).

Public methods

dispose

void dispose ()

Release native resources associated with this Box.

getHeight

float getHeight ()

Get the height of this Box.

Returns
float The size of the Box in the Y dimension.

getLength

float getLength ()

Get the length of this Box.

Returns
float The size of the Box in the Z dimension.

getWidth

float getWidth ()

Get the width of this Box.

Returns
float The size of the Box in the X dimension.

setHeight

void setHeight (float height)

Set the height of this Box.

Parameters
height float: The size of the Box in the Y dimension.

setLength

void setLength (float length)

Set the length of this Box.

Parameters
length float: The size of the Box in the Z dimension.

setWidth

void setWidth (float width)

Set the width of this Box.

Parameters
width float: The size of the Box in the X dimension.

Hooray!