|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot.Corner
public class Corner
Describes the corners of a 3-dimensional cube.
Field Summary | |
---|---|
static Corner |
ORIGIN
The origin. |
Method Summary | |
---|---|
int |
compareTo(Object other)
Defines some arbitrary but consistent ordering of corners. |
boolean |
equals(Object other)
|
Corner[] |
getAdjacent()
Returns an array of the three corners which are adjacent to this one (connected by a cube edge). |
static Corner |
getCorner(int index)
Factory method giving one of the cube corners. |
boolean[] |
getFlags()
Returns an array of boolean flags; the i 'th flag
indicates whether the i 'th coordinate is low or high
(zero or one for a unit cube). |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Corner ORIGIN
Method Detail |
---|
public Corner[] getAdjacent()
public boolean[] getFlags()
i
'th flag
indicates whether the i
'th coordinate is low or high
(zero or one for a unit cube).
public static Corner getCorner(int index)
index
determines which corner you get.
index
- corner ID; 0 <= index < 8public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public int compareTo(Object other)
compareTo
in interface Comparable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |