Class: TencentCloud::Iai::V20180301::HeadPose

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180301/models.rb

Overview

姿态信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pitch = nil, yaw = nil, roll = nil) ⇒ HeadPose

Returns a new instance of HeadPose.



2466
2467
2468
2469
2470
# File 'lib/v20180301/models.rb', line 2466

def initialize(pitch=nil, yaw=nil, roll=nil)
  @Pitch = pitch
  @Yaw = yaw
  @Roll = roll
end

Instance Attribute Details

#PitchObject

Parameters:

  • Pitch:

    上下偏移。

  • Yaw:

    左右偏移。

  • Roll:

    平面旋转。



2464
2465
2466
# File 'lib/v20180301/models.rb', line 2464

def Pitch
  @Pitch
end

#RollObject

Parameters:

  • Pitch:

    上下偏移。

  • Yaw:

    左右偏移。

  • Roll:

    平面旋转。



2464
2465
2466
# File 'lib/v20180301/models.rb', line 2464

def Roll
  @Roll
end

#YawObject

Parameters:

  • Pitch:

    上下偏移。

  • Yaw:

    左右偏移。

  • Roll:

    平面旋转。



2464
2465
2466
# File 'lib/v20180301/models.rb', line 2464

def Yaw
  @Yaw
end

Instance Method Details

#deserialize(params) ⇒ Object



2472
2473
2474
2475
2476
# File 'lib/v20180301/models.rb', line 2472

def deserialize(params)
  @Pitch = params['Pitch']
  @Yaw = params['Yaw']
  @Roll = params['Roll']
end