public class TLcdForwardAzimuthUtil extends Object
Constructor and Description |
---|
TLcdForwardAzimuthUtil() |
Modifier and Type | Method and Description |
---|---|
static double |
forwardAzimuth2ArcAngle(double aForwardAzimuth)
Convert a forward azimuth (0 is North, clockwise) to an angle value that can be used
for an
ILcdArc (0 is East, counter-clockwise). |
static double |
forwardAzimuthDelta2ArcDelta(double aAzimuth1,
double aAzimuth2)
Convert the difference between two forward azimuths (0 is north, clockwise) to an
arc size that can be used for painting (0 is east, counter-clockwise).
|
static double |
forwardAzimuthDelta2ArcDelta(double aAzimuth1,
double aAzimuth2,
boolean aClockwise)
Convert the difference between to forward azimuths (0 is north, clockwise) to an
arc size that can be used for painting (0 is east, counter-clockwise).
|
static double |
getForwardAzimuthDelta(double aAzimuth1,
double aAzimuth2)
Returns the difference (in degrees) between two forward azimuths.
|
static boolean |
isForwardAzimuthClockwise(double aFa1,
double aFa2)
Return true if a turn from forward azimuth 1 to 2 goes in clockwise direction.
|
static double |
normalizeForwardAzimuth(double aForwardAzimuth)
Normalize a given forward azimuth: the result is always in the interval [0;360[.
|
public static boolean isForwardAzimuthClockwise(double aFa1, double aFa2)
aFa1
- Forward azimuth 1 (degrees).aFa2
- Forward azimuth 2 (degrees).public static double forwardAzimuthDelta2ArcDelta(double aAzimuth1, double aAzimuth2)
aAzimuth1
- First forward azimuth (degrees).aAzimuth2
- Second forward azimuth (degrees).public static double forwardAzimuthDelta2ArcDelta(double aAzimuth1, double aAzimuth2, boolean aClockwise)
aClockwise == true
, counter-clockwise otherwise.aAzimuth1
- First forward azimuth (degrees).aAzimuth2
- Second forward azimuth (degrees).aClockwise
- True to return an arc in clockwise direction.public static double normalizeForwardAzimuth(double aForwardAzimuth)
aForwardAzimuth
- Azimuth to normalize (degrees).public static double forwardAzimuth2ArcAngle(double aForwardAzimuth)
ILcdArc
(0 is East, counter-clockwise).aForwardAzimuth
- Given forward azimuth (degrees).ILcdArc
.public static double getForwardAzimuthDelta(double aAzimuth1, double aAzimuth2)