Box3D
Box3D.java File Reference

This class represents a rectangle. More...

Classes

class  box3d.Box3D
 
enum  box3d.Box3D.Face
 

Detailed Description

This class represents a rectangle.

Box3D

Author
Mustafa Haddara
Date
1/10/2016

This class represents a rectangle as (x,y,z) coordinate representing the front-facing top-left corner, and a (w,h,d) tuple representing the width, height and depth.

Box3D b = new Box3D( new int[] {1,1,1}, new int[] {2,2,2});
System.out.println(b.getVolume());
System.out.println(b.getSurfaceArea());
Todo:
Add test cases for the functions.