|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.model.space.Coordinate
org.ascape.model.space.CoordinateContinuous
org.ascape.model.space.Coordinate1DContinuous
public class Coordinate1DContinuous
A location within a one-dimensional discrete space.
| Field Summary |
|---|
| Fields inherited from class org.ascape.model.space.CoordinateContinuous |
|---|
values |
| Constructor Summary | |
|---|---|
Coordinate1DContinuous()
Creates a 1-dimensional coordinate. |
|
Coordinate1DContinuous(double value)
Creates a 1-dimensional coordinate with the specified position. |
|
Coordinate1DContinuous(double[] values)
Creates a 1-dimensional coordinate with the specified postion values. |
|
| Method Summary | |
|---|---|
Coordinate |
add(Coordinate coordinate)
Adds the location of the supplied coordinate to this coordinate, returning the resulting coordinate. |
double |
getDistance(Coordinate coordinate)
Returns the distance between two coordinates. |
double |
getValue()
Returns the number of dimensions for this lattice. |
double |
getXValue()
Returns the x value of this coordinate. |
void |
setValue(double x)
Sets the value for this coordinate. |
void |
setXValue(double x)
Sets the y value for this coordinate. |
java.lang.String |
toString()
Returns a string representing this coordinate. |
| Methods inherited from class org.ascape.model.space.CoordinateContinuous |
|---|
equals, getDimensionCount, getProduct, getValueAtDimension, getValues, setValueAtDimension, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Coordinate1DContinuous()
public Coordinate1DContinuous(double[] values)
values - the valuespublic Coordinate1DContinuous(double value)
value - the value| Method Detail |
|---|
public double getDistance(Coordinate coordinate)
getDistance in class Coordinatecoordinate - target to calcualte distance to
public double getValue()
public void setValue(double x)
x - the xpublic double getXValue()
public void setXValue(double x)
x - the xpublic Coordinate add(Coordinate coordinate)
add in class Coordinatecoordinate - the coordinate to sum with this one
public java.lang.String toString()
toString in class CoordinateContinuous
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||