public class Location extends Object
Modifier and Type | Field and Description |
---|---|
double |
alt
a zvtm altitude
|
double |
vx
a zvtm X coordinate
|
double |
vy
a zvtm Y coordinate
|
Constructor and Description |
---|
Location(double x,
double y,
double a) |
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(Location l1,
Location l2) |
double |
getAltitude() |
static Vector |
getDifference(Location l1,
Location l2)
Get the difference between two locations in position and altitude.
|
Point2D.Double |
getPosition()
Get (x,y) position.
|
double |
getX() |
double |
getY() |
void |
setAltitude(double a)
Set altitude.
|
void |
setPosition(Point2D.Double p)
Set (x,y) position.
|
void |
setPositionX(double x)
Set x-coordinate only.
|
void |
setPositionY(double y)
Set y-coordinate only.
|
String |
toString() |
public double vx
public double vy
public double alt
public static Vector getDifference(Location l1, Location l2)
l1
- first locationl2
- second locationpublic void setPosition(Point2D.Double p)
p
- (x,y) coordinatespublic void setPositionX(double x)
x
- coordinate on x-axis.public void setPositionY(double y)
y
- coordinate on y-axis.public void setAltitude(double a)
a
- altitude.public Point2D.Double getPosition()
public double getX()
public double getY()
public double getAltitude()
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.