Class Cuboid3D
Object
Cuboid3D
Describes cuboid in 3D.
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
-
Field Details
-
VERTEX_COUNT
public static final int VERTEX_COUNT- See Also:
-
-
Constructor Details
-
Cuboid3D
-
Cuboid3D
-
Cuboid3D
-
-
Method Details
-
vertices
-
getVertices
-
getCenter
-
v1
-
v2
-
v3
-
v4
-
v5
-
v6
-
v7
-
v8
-
getAvailableVertexCount
public int getAvailableVertexCount() -
getMissingVertexCount
public int getMissingVertexCount() -
hashCode
public int hashCode() -
equals
-
toString
-