|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.util.PixelPoint
public class PixelPoint
A pixel point in 3D space
| Constructor Summary | |
|---|---|
PixelPoint()
Constructor |
|
PixelPoint(double x,
double y)
Constructor |
|
PixelPoint(double x,
double y,
double z)
Constructor |
|
PixelPoint(int x,
int y)
Constructor |
|
PixelPoint(int x,
int y,
int z)
Constructor |
|
PixelPoint(PixelPoint pp)
Copy Constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a copy of this PixelPoint |
double |
distanceToPixel(PixelPoint pp)
Returns the distance from this PixelPoint to the specified PixelPoint. |
PixelPoint |
fromWorldCoordinates(double thetaDeg)
Transforms this PixelPoint frame (in world/parent coordinates) to a new coordinate frame rotated by the specified number of degrees. |
int |
getIntX()
Gets the X coordinate value as an integer |
int |
getIntY()
Gets the Y coordinate value as an integer |
int |
getIntZ()
Gets the Z coordinate value as an integer |
double |
getX()
Gets the X coordinate value |
double |
getY()
Gets the Y coordinate value |
double |
getZ()
Gets the Z coordinate value |
static void |
main(java.lang.String[] argv)
Main entry point for testing/debugging |
void |
setX(double x)
Sets the X coordinate value |
void |
setX(int x)
Sets the X coordinate value |
void |
setY(double y)
Sets the Y coordinate value |
void |
setY(int y)
Sets the Y coordinate value |
void |
setZ(double z)
Sets the Z coordinate value |
void |
setZ(int z)
Sets the Z coordinate value |
java.lang.String |
toString()
Returns a string representation of this PixelPoint |
java.lang.String |
toString(int dec)
Returns a string representation of this PixelPoint |
PixelPoint |
toWorldCoordinates(double thetaDeg)
Transforms this PixelPoint frame to world/parent 2D coordinates. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PixelPoint()
public PixelPoint(int x,
int y)
x - X coordinatey - Y coordinate
public PixelPoint(int x,
int y,
int z)
x - X coordinatey - Y coordinatez - Z coordinate
public PixelPoint(double x,
double y)
x - X coordinatey - Y coordinate
public PixelPoint(double x,
double y,
double z)
x - X coordinatey - Y coordinatez - Z coordinatepublic PixelPoint(PixelPoint pp)
pp - The PixelPoint to copy| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic void setX(int x)
x - The X coordinate valuepublic void setX(double x)
x - The X coordinate valuepublic double getX()
public int getIntX()
public void setY(int y)
y - The Y coordinate valuepublic void setY(double y)
y - The Y coordinate valuepublic double getY()
public int getIntY()
public void setZ(int z)
z - The Z coordinate valuepublic void setZ(double z)
z - The Z coordinate valuepublic double getZ()
public int getIntZ()
public double distanceToPixel(PixelPoint pp)
pp - The other PixelPoint
public PixelPoint toWorldCoordinates(double thetaDeg)
thetaDeg - The degrees rotations in the world/parent coordinate frame.
public PixelPoint fromWorldCoordinates(double thetaDeg)
thetaDeg - The degrees rotations in the world/parent coordinate frame.
public java.lang.String toString(int dec)
dec - The number of decimal places
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] argv)
argv - Comand-line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||