public abstract class Bearing extends DirectionsJsonObject
angle()
which is a clockwise value from true north between 0 and 360,
and a degrees()
which is the range of degrees by which the angle can deviate.Modifier and Type | Class and Description |
---|---|
static class |
Bearing.Builder
This builder can be used to set the values describing the
Bearing . |
Constructor and Description |
---|
Bearing() |
Modifier and Type | Method and Description |
---|---|
abstract double |
angle()
Clockwise value from true north between 0 and 360.
|
static Bearing.Builder |
builder()
Build a new instance of this builder.
|
abstract double |
degrees()
Range of degrees by which the angle can deviate.
|
abstract Bearing.Builder |
toBuilder()
Convert the current
Bearing to its builder holding the currently assigned
values. |
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson
public static Bearing.Builder builder()
Bearing.Builder
public abstract double angle()
Defaults to 45°.
public abstract double degrees()
Defaults to 90°.
@NonNull public abstract Bearing.Builder toBuilder()
Bearing
to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified Bearing
.Bearing.Builder
with the same values set to match the ones defined
in this Bearing