Class: Google::Apis::SpectrumV1explorer::GeoLocationEllipse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#centerGoogle::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

#orientationFloat

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

Returns:

  • (Float)


440
441
442
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 440

def orientation
  @orientation
end

#semi_major_axisFloat

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

Returns:

  • (Float)


447
448
449
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 447

def semi_major_axis
  @semi_major_axis
end

#semi_minor_axisFloat

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

Returns:

  • (Float)


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