Package mgui.geometry.util
Class SortedShape3D
java.lang.Object
mgui.geometry.util.SortedShape3D
public class SortedShape3D
extends java.lang.Object
Convenience class for sorting a shape's vertices in order of their x, y, and z coordinates,
respectively.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SortedShape3D.Vertex
static class
SortedShape3D.VertexComparatorX
static class
SortedShape3D.VertexComparatorY
static class
SortedShape3D.VertexComparatorZ
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SortedShape3D(Shape3DInt shape)
-
Method Summary
Modifier and Type Method Description java.util.ArrayList<java.lang.Integer>
getSortedX()
java.util.ArrayList<java.lang.Integer>
getSortedY()
java.util.ArrayList<java.lang.Integer>
getSortedZ()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
sorted_x
protected java.util.ArrayList<java.lang.Integer> sorted_x -
sorted_y
protected java.util.ArrayList<java.lang.Integer> sorted_y -
sorted_z
protected java.util.ArrayList<java.lang.Integer> sorted_z
-
-
Constructor Details
-
SortedShape3D
-
-
Method Details
-
getSortedX
public java.util.ArrayList<java.lang.Integer> getSortedX() -
getSortedY
public java.util.ArrayList<java.lang.Integer> getSortedY() -
getSortedZ
public java.util.ArrayList<java.lang.Integer> getSortedZ()
-