|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soccerclient.datamanager.Coordinate
Überschrift: Coordinate
Beschreibung: Coordinate is a class for handling coordinates.
Copyright: Copyright (c) 2002
Organisation: pm39
Constructor Summary | |
Coordinate()
Creates a new Coordinate with coordinates (0,0) |
|
Coordinate(double xAchse,
double yAchse)
Creates a new Coordinate |
Method Summary | |
Coordinate |
addK(Coordinate coor)
Returns a Coordinate whose value is
(this x-coordinate, this y-coordinate) + (x-coordinate of coor , y-coordinate of coor ) |
double |
getX()
Returns the value of the x-coordinate |
double |
getY()
Returns the value of the y-coordinate |
Coordinate |
scale(double val)
Returns a Coordinate whose value is
(val * (this x-coordinate), val * (this y-coord.)) |
void |
setCoordinate(double xAchse,
double yAchse)
Returns a Coordinate |
void |
setX(double xAchse)
Sets the value of the x-coordinate |
void |
setY(double yAchse)
Sets the value of the y-coordinate |
Coordinate |
subK(Coordinate coor)
Returns a Coordinate whose value is
(this x-coordinate , this y-coordinate) - (x-coord. of coordinate , y-coord. of coordinate ) |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Coordinate()
Coordinate
with coordinates (0,0)public Coordinate(double xAchse, double yAchse)
Coordinate
xAchse
- a double
value specifying x-coordinateyAchse
- a double
value specifying y-coordinateMethod Detail |
public double getX()
double
containing the x-coordinatepublic double getY()
double
containing the y-coordinatepublic void setX(double xAchse)
xAchse
- a double
value specifying x-coordinatepublic void setY(double yAchse)
yAchse
- a double
value specifying y-coordinatepublic void setCoordinate(double xAchse, double yAchse)
Coordinate
xAchse
- a double
value specifying x-coordinateyAchse
- a double
value specifying y-coordinatepublic Coordinate addK(Coordinate coor)
Coordinate
whose value is
(this
x-coordinate, this
y-coordinate) + (x-coordinate of coor
, y-coordinate of coor
)
coor
- a Coordinate
value to be added to this Coordinatethis
+ coor
public Coordinate subK(Coordinate coor)
Coordinate
whose value is
(this
x-coordinate , this
y-coordinate) - (x-coord. of coordinate
, y-coord. of coordinate
)coor
- a Coordinate
value to be subtracted from this Coordinatethis
- coor
public Coordinate scale(double val)
Coordinate
whose value is
(val
* (this
x-coordinate), val
* (this
y-coord.))val
- a double
value to be multiplied by this Coordinateval
* this
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |