public class PolarCoor extends java.lang.Object implements java.io.Serializable
AlignInCircleAction
)Modifier and Type | Field and Description |
---|---|
double |
angle
Angular coordinate in radians.
|
EastNorth |
pole
Reference point (analogous to the origin of a Cartesian coordinate system).
|
double |
radius
Radial coordinate (distance from the pole).
|
private static long |
serialVersionUID |
Constructor and Description |
---|
PolarCoor(double radius,
double angle)
Constructs a new
PolarCoor , using (0,0) as pole. |
PolarCoor(double radius,
double angle,
EastNorth pole)
Constructs a new
PolarCoor . |
PolarCoor(EastNorth en)
|
PolarCoor(EastNorth en,
EastNorth pole)
Constructs a new
PolarCoor . |
Modifier and Type | Method and Description |
---|---|
static double |
computeAngle(EastNorth en,
EastNorth pole)
Compute polar angle between an east/north and the pole.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
EastNorth |
toEastNorth()
Converts this
PolarCoor to an EastNorth instance. |
java.lang.String |
toString() |
private static final long serialVersionUID
public final double radius
public final double angle
public PolarCoor(double radius, double angle)
PolarCoor
, using (0,0)
as pole.radius
- radial coordinate (distance from the pole)angle
- angular coordinate in radianspublic PolarCoor(double radius, double angle, EastNorth pole)
PolarCoor
.radius
- radial coordinate (distance from the pole)angle
- angular coordinate in radianspole
- reference point (analogous to the origin of a Cartesian coordinate system)public static double computeAngle(EastNorth en, EastNorth pole)
en
- east/north coordinatespole
- reference point (analogous to the origin of a Cartesian coordinate system)public EastNorth toEastNorth()
PolarCoor
to an EastNorth
instance.EastNorth
instancepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object