Class: Google::Apis::SpectrumV1explorer::GeoLocationEllipse
- Inherits:
-
Object
- Object
- Google::Apis::SpectrumV1explorer::GeoLocationEllipse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spectrum_v1explorer/classes.rb,
generated/google/apis/spectrum_v1explorer/representations.rb,
generated/google/apis/spectrum_v1explorer/representations.rb
Overview
A "point" with uncertainty is represented using the Ellipse shape.
Instance Attribute Summary collapse
-
#center ⇒ Google::Apis::SpectrumV1explorer::GeoLocationPoint
A single geolocation on the globe.
-
#orientation ⇒ Float
A floating-point number that expresses the orientation of the ellipse, representing the rotation, in degrees, of the semi-major axis from North towards the East.
-
#semi_major_axis ⇒ Float
A floating-point number that expresses the location uncertainty along the major axis of the ellipse.
-
#semi_minor_axis ⇒ Float
A floating-point number that expresses the location uncertainty along the minor axis of the ellipse.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GeoLocationEllipse
constructor
A new instance of GeoLocationEllipse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GeoLocationEllipse
Returns a new instance of GeoLocationEllipse
456 457 458 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 456 def initialize(**args) update!(**args) end |
Instance Attribute Details
#center ⇒ Google::Apis::SpectrumV1explorer::GeoLocationPoint
A single geolocation on the globe.
Corresponds to the JSON property center
430 431 432 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 430 def center @center end |
#orientation ⇒ Float
A floating-point number that expresses the orientation of the ellipse,
representing the rotation, in degrees, of the semi-major axis from North
towards the East. For example, when the uncertainty is greatest along the
North-South direction, orientation is 0 degrees; conversely, if the
uncertainty is greatest along the East-West direction, orientation is 90
degrees. When orientation is not present, the orientation is assumed to be 0.
Corresponds to the JSON property orientation
440 441 442 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 440 def orientation @orientation end |
#semi_major_axis ⇒ Float
A floating-point number that expresses the location uncertainty along the
major axis of the ellipse. May be required by the regulatory domain. When the
uncertainty is optional, the default value is 0.
Corresponds to the JSON property semiMajorAxis
447 448 449 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 447 def semi_major_axis @semi_major_axis end |
#semi_minor_axis ⇒ Float
A floating-point number that expresses the location uncertainty along the
minor axis of the ellipse. May be required by the regulatory domain. When the
uncertainty is optional, the default value is 0.
Corresponds to the JSON property semiMinorAxis
454 455 456 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 454 def semi_minor_axis @semi_minor_axis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
461 462 463 464 465 466 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 461 def update!(**args) @center = args[:center] if args.key?(:center) @orientation = args[:orientation] if args.key?(:orientation) @semi_major_axis = args[:semi_major_axis] if args.key?(:semi_major_axis) @semi_minor_axis = args[:semi_minor_axis] if args.key?(:semi_minor_axis) end |