Class: TencentCloud::Tiia::V20190529::Rect

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

Overview

具体坐标,可用来判断边界

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ Rect

Returns a new instance of Rect.



1836
1837
1838
1839
1840
1841
# File 'lib/v20190529/models.rb', line 1836

def initialize(x=nil, y=nil, width=nil, height=nil)
  @X = x
  @Y = y
  @Width = width
  @Height = height
end

Instance Attribute Details

#HeightObject

Parameters:

  • X:

    x轴坐标

  • Y:

    y轴坐标

  • Width: (x, y)

    坐标距离长度

  • Height: (x, y)

    坐标距离高度



1834
1835
1836
# File 'lib/v20190529/models.rb', line 1834

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    x轴坐标

  • Y:

    y轴坐标

  • Width: (x, y)

    坐标距离长度

  • Height: (x, y)

    坐标距离高度



1834
1835
1836
# File 'lib/v20190529/models.rb', line 1834

def Width
  @Width
end

#XObject

Parameters:

  • X:

    x轴坐标

  • Y:

    y轴坐标

  • Width: (x, y)

    坐标距离长度

  • Height: (x, y)

    坐标距离高度



1834
1835
1836
# File 'lib/v20190529/models.rb', line 1834

def X
  @X
end

#YObject

Parameters:

  • X:

    x轴坐标

  • Y:

    y轴坐标

  • Width: (x, y)

    坐标距离长度

  • Height: (x, y)

    坐标距离高度



1834
1835
1836
# File 'lib/v20190529/models.rb', line 1834

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



1843
1844
1845
1846
1847
1848
# File 'lib/v20190529/models.rb', line 1843

def deserialize(params)
  @X = params['X']
  @Y = params['Y']
  @Width = params['Width']
  @Height = params['Height']
end