|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPoint
PointN
PointN is a subclass of Point extending Point to the general case of N dimensions.
Constructor Summary | |
PointN(double[] z)
|
Method Summary | |
void |
abs()
Instance method to take the absolute value of this PointN. |
void |
add(Point delta)
Instance method to add a PointN to this PointN. |
java.lang.Object |
clone()
Overrides the Point.clone() method to enable a deep copy. |
double |
coordinate(int i)
Instance method to return the ith coordinate of this PointN. |
int |
dimension()
Instance method to return d, the dimension of this PointN. |
double |
max()
Instance method to return the maximum value of this PointN. |
double |
min()
Instance method to return the minimum value of this PointN. |
void |
multiply(double s)
Instance method to multiply this PointN by a double. |
void |
round(int n)
Instance method to round this PointN to 10^(n) accuracy. |
void |
setCoordinate(int i,
double value)
Instance method to set the ith coordinate of this PointN. |
java.lang.String |
toString()
Returns the PointN in readable form. |
void |
truncate(int n)
Instance method to truncate this PointN to 10^(n) accuracy. |
Methods inherited from class Point |
abs, add, add, add, multiply |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PointN(double[] z)
Method Detail |
public java.lang.Object clone()
clone
in class Point
public int dimension()
dimension
in class Point
public double coordinate(int i)
coordinate
in class Point
public void setCoordinate(int i, double value)
public void add(Point delta)
add
in class Point
public void multiply(double s)
multiply
in class Point
public void abs()
abs
in class Point
public double max()
max
in class Point
public double min()
min
in class Point
public java.lang.String toString()
toString
in class Point
public void truncate(int n)
truncate
in class Point
public void round(int n)
round
in class Point
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |