|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.geo.GeoObject
jasi.sim.geo.spherical.Coordinate
public final class Coordinate
Immutable class to represent space values.
| Field Summary | |
|---|---|
static Space |
CIRCLE
The sphere's circumference. |
static Coordinate |
ORIGIN
The reference point of origin. |
static Space |
RADIUS
The sphere's radius. |
| Fields inherited from interface jasi.sim.geo.Geometric |
|---|
BEGIN, END, MIDLE |
| Constructor Summary | |
|---|---|
Coordinate(Coordinate c)
Constructor of a spherical coordinate. |
|
Coordinate(Latitude lattitude,
Longitude longitude)
Constructor of a spherical coordinate on the surface. |
|
Coordinate(Latitude lattitude,
Longitude longitude,
Space heights)
Constructor of a spherical coordinate. |
|
Coordinate(SpaceVec r)
Constructor of a spherical coordinate. |
|
Coordinate(java.lang.String s)
Constructor of a spherical coordinate. |
|
| Method Summary | |
|---|---|
double |
angleFrom(Coordinate c)
Get the direction angle to that coordinate from this coordinate. |
double |
angleTo(Coordinate c)
Get the direction angle at this coordinate to that coordinate. |
Arc |
arc(Coordinate c)
Get the arc length from this coordinate to that coordinate. |
Coordinate |
direction(double angle,
double length)
Calculate new coordinate moving a path from this to that coordinate. |
Space |
distance(Coordinate c)
Get the distance from this coordinate to that coordinate. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
Space |
getHeight()
Get height of this coordinate. |
Latitude |
getLattitude()
Get the latitude of this coordinate. |
Longitude |
getLongitude()
Get the longitude of this coordinate. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of this object. |
SpaceVec |
transform()
Returns the space vector of this coordinate. |
| Methods inherited from class jasi.sim.geo.GeoObject |
|---|
getContent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Space RADIUS
public static final Space CIRCLE
public static final Coordinate ORIGIN
| Constructor Detail |
|---|
public Coordinate(Latitude lattitude,
Longitude longitude,
Space heights)
lattitude - The latitude part.longitude - The longitude part.heights - The heights part.
public Coordinate(Latitude lattitude,
Longitude longitude)
lattitude - The latitude part.longitude - The longitude part.public Coordinate(Coordinate c)
c - A coordinate.public Coordinate(SpaceVec r)
r - The space vector.public Coordinate(java.lang.String s)
s - The string representation of a space value.| Method Detail |
|---|
public Latitude getLattitude()
public Longitude getLongitude()
public Space getHeight()
public SpaceVec transform()
public Space distance(Coordinate c)
c - That coordinate.
public Arc arc(Coordinate c)
c - That coordinate.
public double angleTo(Coordinate c)
c - That coordinate
public double angleFrom(Coordinate c)
c - That coordinate
public Coordinate direction(double angle,
double length)
angle - The course angle at this coordinate.length - The path length.
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - That object which is compared with this object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||