public class Angular extends Object
PS1 instructions: do NOT change the method signatures or specifications of these methods, but you should implement their method bodies, and you may add new public or private methods or classes if you like.
Modifier and Type | Method | Description |
---|---|---|
static Angle |
displacement(Angle begin,
Angle end) |
Angular displacement from begin to end.
|
static double |
toDegrees(Angle dmsAngle) |
Convert a degree-minutes-seconds angle to approximate signed floating-point
degrees.
|
public static double toDegrees(Angle dmsAngle)
dmsAngle
- angle in degrees-minutes-secondspublic static Angle displacement(Angle begin, Angle end)
begin
- starting angle, must be a valid latitude or longitude as
defined in Angle
end
- ending angle, must be a valid angle measuring the same
coordinate (latitude or longitude) as begin