BoundingBox Model
BoundingBox Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| X1 | float64 | Left coordinate | |
| Y1 | float64 | Top coordinate | |
| X2 | float64 | Right coordinate | |
| Y2 | float64 | Bottom coordinate |
Methods
NewBoundingBox
func NewBoundingBox(x1 float64, y1 float64, x2 float64, y2 float64, ) *BoundingBox
NewBoundingBox instantiates a new BoundingBox object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewBoundingBoxWithDefaults
func NewBoundingBoxWithDefaults() *BoundingBox
NewBoundingBoxWithDefaults instantiates a new BoundingBox object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetX1
func (o *BoundingBox) GetX1() float64
GetX1 returns the X1 field if non-nil, zero value otherwise.
GetX1Ok
func (o *BoundingBox) GetX1Ok() (*float64, bool)
GetX1Ok returns a tuple with the X1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetX1
func (o *BoundingBox) SetX1(v float64)
SetX1 sets X1 field to given value.
GetY1
func (o *BoundingBox) GetY1() float64
GetY1 returns the Y1 field if non-nil, zero value otherwise.
GetY1Ok
func (o *BoundingBox) GetY1Ok() (*float64, bool)
GetY1Ok returns a tuple with the Y1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetY1
func (o *BoundingBox) SetY1(v float64)
SetY1 sets Y1 field to given value.
GetX2
func (o *BoundingBox) GetX2() float64
GetX2 returns the X2 field if non-nil, zero value otherwise.
GetX2Ok
func (o *BoundingBox) GetX2Ok() (*float64, bool)
GetX2Ok returns a tuple with the X2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetX2
func (o *BoundingBox) SetX2(v float64)
SetX2 sets X2 field to given value.
GetY2
func (o *BoundingBox) GetY2() float64
GetY2 returns the Y2 field if non-nil, zero value otherwise.
GetY2Ok
func (o *BoundingBox) GetY2Ok() (*float64, bool)
GetY2Ok returns a tuple with the Y2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetY2
func (o *BoundingBox) SetY2(v float64)
SetY2 sets Y2 field to given value.