Class: Google::Apis::StreetviewpublishV1::Measurement3d
- Inherits:
-
Object
- Object
- Google::Apis::StreetviewpublishV1::Measurement3d
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/streetviewpublish_v1/classes.rb,
lib/google/apis/streetviewpublish_v1/representations.rb,
lib/google/apis/streetviewpublish_v1/representations.rb
Overview
A Generic 3d measurement sample.
Instance Attribute Summary collapse
-
#capture_time ⇒ String
The timestamp of the IMU measurement.
-
#x ⇒ Float
The sensor measurement in the x axis.
-
#y ⇒ Float
The sensor measurement in the y axis.
-
#z ⇒ Float
The sensor measurement in the z axis.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Measurement3d
constructor
A new instance of Measurement3d.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Measurement3d
Returns a new instance of Measurement3d.
435 436 437 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 435 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capture_time ⇒ String
The timestamp of the IMU measurement.
Corresponds to the JSON property captureTime
418 419 420 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 418 def capture_time @capture_time end |
#x ⇒ Float
The sensor measurement in the x axis.
Corresponds to the JSON property x
423 424 425 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 423 def x @x end |
#y ⇒ Float
The sensor measurement in the y axis.
Corresponds to the JSON property y
428 429 430 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 428 def y @y end |
#z ⇒ Float
The sensor measurement in the z axis.
Corresponds to the JSON property z
433 434 435 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 433 def z @z end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
440 441 442 443 444 445 |
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 440 def update!(**args) @capture_time = args[:capture_time] if args.key?(:capture_time) @x = args[:x] if args.key?(:x) @y = args[:y] if args.key?(:y) @z = args[:z] if args.key?(:z) end |