Class: Google::Apis::StreetviewpublishV1::Measurement3d

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Measurement3d

Returns a new instance of Measurement3d.



364
365
366
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 364

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#capture_timeString

The timestamp of the IMU measurement. Corresponds to the JSON property captureTime

Returns:

  • (String)


347
348
349
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 347

def capture_time
  @capture_time
end

#xFloat

The sensor measurement in the x axis. Corresponds to the JSON property x

Returns:

  • (Float)


352
353
354
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 352

def x
  @x
end

#yFloat

The sensor measurement in the y axis. Corresponds to the JSON property y

Returns:

  • (Float)


357
358
359
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 357

def y
  @y
end

#zFloat

The sensor measurement in the z axis. Corresponds to the JSON property z

Returns:

  • (Float)


362
363
364
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 362

def z
  @z
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



369
370
371
372
373
374
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 369

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