|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faceless.graph.Point
public final class Point
A Point represents a point in 3D space, and is the building block upon which the 3D representation of the Graphs is based.
This class is used internally by the library, and is of no interest to end users.
| Constructor Summary | |
|---|---|
Point(double x,
double y)
Create a point in 2D space (i.e. with a zero Z axis) |
|
Point(double x,
double y,
double z)
Create a point at the given position in 3D space. |
|
Point(Double x,
Double y,
Double z)
Create a point at the given position in 3D space. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
boolean |
equals(Object o)
|
int |
hashCode()
|
void |
moveBy(org.faceless.graph.Vector v)
Move a point by the specified Vector |
Point |
moveByClone(org.faceless.graph.Vector v)
|
String |
toString()
|
void |
transform(org.faceless.graph.Transformer tr)
Transform the point using the given transformer |
double |
x()
Get the X position for this point |
double |
y()
Get the Y position for this point |
double |
z()
Get the Z position for this point |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Point(Double x,
Double y,
Double z)
public Point(double x,
double y)
public Point(double x,
double y,
double z)
| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic double x()
public double y()
public double z()
public void transform(org.faceless.graph.Transformer tr)
public void moveBy(org.faceless.graph.Vector v)
public Point moveByClone(org.faceless.graph.Vector v)
public Object clone()
clone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||