Class: Google::Apis::TranscoderV1beta1::NormalizedCoordinate
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::NormalizedCoordinate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/representations.rb
Overview
2D normalized coordinates. Default: 0.0, 0.0
Instance Attribute Summary collapse
-
#x ⇒ Float
Normalized x coordinate.
-
#y ⇒ Float
Normalized y coordinate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NormalizedCoordinate
constructor
A new instance of NormalizedCoordinate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NormalizedCoordinate
Returns a new instance of NormalizedCoordinate.
1111 1112 1113 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1111 def initialize(**args) update!(**args) end |
Instance Attribute Details
#x ⇒ Float
Normalized x coordinate.
Corresponds to the JSON property x
1104 1105 1106 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1104 def x @x end |
#y ⇒ Float
Normalized y coordinate.
Corresponds to the JSON property y
1109 1110 1111 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1109 def y @y end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1116 1117 1118 1119 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1116 def update!(**args) @x = args[:x] if args.key?(:x) @y = args[:y] if args.key?(:y) end |