|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectradtools.graphing.Point
public class Point
Point class represents a set of coordinates on a three dimensional graph can be used for two dimensions with z coordinate defaulted as 0
| Field Summary | |
|---|---|
private double |
myX
|
private double |
myY
|
private double |
myZ
|
| Constructor Summary | |
|---|---|
Point(double x,
double y,
double z)
|
|
| Method Summary | |
|---|---|
void |
fixPoint(int toFix,
double n)
If adjusting a point is automated, this can be used instead of the set# methods |
double |
getX()
accessor method for x coordinate |
double |
getY()
accessor method for y coordinate |
double |
getZ()
accessor method for z coordinate |
void |
setX(double x)
Changes this point's first coordinate |
void |
setY(double x)
Changes this point's second coordinate |
void |
setZ(double x)
Changes this point's third coordinate |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double myX
private double myY
private double myZ
| Constructor Detail |
|---|
public Point(double x,
double y,
double z)
| Method Detail |
|---|
public void fixPoint(int toFix,
double n)
toFix - represents the position of the coordinate to be altered, 0 for x, 1 for y, 2 for zn - is the new value of the coordinatepublic double getX()
public double getY()
public double getZ()
public void setX(double x)
x - new double value of x coordinatepublic void setY(double x)
x - new double value of y coordinatepublic void setZ(double x)
x - new double value of z coordinatepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||