public class AngleCalc extends Object
Constructor and Description |
---|
AngleCalc() |
Modifier and Type | Method and Description |
---|---|
double |
alignOrientation(double baseOrientation,
double orientation)
Change the representation of an orientation, so the difference to the given baseOrientation
will be smaller or equal to PI (180 degree).
|
double |
calcOrientation(double lat1,
double lon1,
double lat2,
double lon2)
Return orientation of line relative to east.
|
double |
convertAzimuth2xaxisAngle(double azimuth)
convert north based clockwise azimuth (0, 360) into x-axis/east based angle (-Pi, Pi)
|
public double calcOrientation(double lat1, double lon1, double lat2, double lon2)
public double convertAzimuth2xaxisAngle(double azimuth)
public double alignOrientation(double baseOrientation, double orientation)
Copyright © 2012–2016. All rights reserved.