Class Cuboid2D

Object
Cuboid2D

public class Cuboid2D extends Object
Describes cuboid in 2D.

It differs from Bounding Box in 2D with number of vertices. Cuboid has 8 vertices instead of 4.

Cuboid may have some of the vertices missing. In this case values of such vertices is null.

Vertex naming is the following:


 y
 ^
 |    7--------8
 |   /|       /|
 |  / |      / |
 | 3--|-----4  |
 | |  6---- |--5
 | | /      | /
 | |/       |/
 | 2--------1
 |-----------------> x