public class EastNorth extends Coordinate
x, y
Constructor and Description |
---|
EastNorth(double east,
double north) |
Modifier and Type | Method and Description |
---|---|
EastNorth |
add(double dx,
double dy) |
EastNorth |
add(EastNorth other) |
double |
distance(EastNorth en)
Returns the euclidean distance from this
EastNorth to a specified EastNorth . |
double |
distanceSq(EastNorth en)
Returns the square of the euclidean distance from this
EastNorth to a specified EastNorth . |
double |
east() |
boolean |
equalsEpsilon(EastNorth other,
double e)
Compares two EastNorth values
|
EastNorth |
getCenter(EastNorth en2) |
double |
heading(EastNorth other)
Returns the heading, in radians, that you have to use to get from
this EastNorth to another.
|
EastNorth |
interpolate(EastNorth en2,
double proportion) |
boolean |
isValid()
Replies true if east and north are different from Double.NaN and not infinite
|
double |
length()
Counts length (distance from [0,0]) of this.
|
double |
north() |
EastNorth |
rotate(EastNorth pivot,
double angle)
Returns an EastNorth representing the this EastNorth rotated around
a given EastNorth by a given angle
|
EastNorth |
scale(double s) |
EastNorth |
sub(EastNorth en) |
String |
toString() |
computeHashCode, distance, distance, distanceSq, distanceSq, equals, getX, getY, hashCode, toBBox, toBBox
public EastNorth(double east, double north)
public double east()
public double north()
public EastNorth interpolate(EastNorth en2, double proportion)
public double distance(EastNorth en)
EastNorth
to a specified EastNorth
.en
- the specified coordinate to be measured against this EastNorth
EastNorth
to a specified EastNorth
public double distanceSq(EastNorth en)
EastNorth
to a specified EastNorth
.en
- the specified coordinate to be measured against this EastNorth
EastNorth
to a specified EastNorth
public double length()
public double heading(EastNorth other)
other
- the "destination" positionpublic boolean isValid()
public EastNorth rotate(EastNorth pivot, double angle)
pivot
- the center of the rotationangle
- the angle of the rotationpublic boolean equalsEpsilon(EastNorth other, double e)