|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.geometry.Point
public class Point
A point in three-dimensional space.
| Field Summary | |
|---|---|
static Point |
ORIGIN_POINT
A predefined point with zero coordinates. |
| Constructor Summary | |
|---|---|
Point(double x,
double y)
Two-dimensional primitive pixel coordinate constructor. |
|
Point(double x,
double y,
double z)
Primitive pixel coordinate constructor. |
|
Point(double x,
double y,
double z,
Unit unit)
Primitive coordinate and unit constructor. |
|
Point(double x,
double y,
Unit unit)
Two-dimensional primitive coordinate and unit constructor. |
|
Point(Extent x,
Extent y)
Two-dimensional coordinate constructor. |
|
Point(Extent x,
Extent y,
Extent z)
Coordinate constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one. |
Extent |
getX()
|
Extent |
getY()
|
Extent |
getZ()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Point |
translate(Dimensions dimensions)
Translates this point by the given dimensions. |
Point |
translate(double dx,
double dy)
Translates this point in two dimensions by the given primitive coordinate deltas. |
Point |
translate(double dx,
double dy,
double dz)
Translates this point by the given primitive coordinate deltas. |
Point |
translate(Extent dx,
Extent dy)
Translates this point in two dimensions by the given coordinate deltas. |
Point |
translate(Extent dx,
Extent dy,
Extent dz)
Translates this point by the given coordinate deltas. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Point ORIGIN_POINT
| Constructor Detail |
|---|
public Point(double x,
double y)
x - The X coordinate.y - The Y coordinate.
public Point(double x,
double y,
double z)
x - The X coordinate.y - The Y coordinate.z - The Z coordinate.
public Point(double x,
double y,
Unit unit)
x - The X coordinate.y - The Y coordinate.unit - The unit in which the point is measured.
public Point(double x,
double y,
double z,
Unit unit)
x - The X coordinate.y - The Y coordinate.z - The Z coordinate.unit - The unit in which the point is measured.
public Point(Extent x,
Extent y)
x - The X coordinate.y - The Y coordinate.
java.lang.NullPointerException - if one of the given coordinates is null.
public Point(Extent x,
Extent y,
Extent z)
x - The X coordinate.y - The Y coordinate.z - The Z coordinate.
java.lang.NullPointerException - if one of the given coordinates is null.| Method Detail |
|---|
public Extent getX()
public Extent getY()
public Extent getZ()
public Point translate(Extent dx,
Extent dy)
dx - The X coordinate delta.dy - The Y coordinate delta.
public Point translate(Extent dx,
Extent dy,
Extent dz)
dx - The X coordinate delta.dy - The Y coordinate delta.dz - The Z coordinate delta.
public Point translate(double dx,
double dy)
dx - The X coordinate delta.dy - The Y coordinate delta.
public Point translate(double dx,
double dy,
double dz)
dx - The X coordinate delta.dy - The Y coordinate delta.dz - The Z coordinate delta.
public Point translate(Dimensions dimensions)
dimensions - The dimension by which to translate this point
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - The reference object with which to compare.
true if this object is equivalent to the given object.public final java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||