Class: Google::Apis::TranscoderV1::NormalizedCoordinate
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::NormalizedCoordinate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/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.
1453 1454 1455 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#x ⇒ Float
Normalized x coordinate.
Corresponds to the JSON property x
1446 1447 1448 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1446 def x @x end |
#y ⇒ Float
Normalized y coordinate.
Corresponds to the JSON property y
1451 1452 1453 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1451 def y @y end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1458 1459 1460 1461 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1458 def update!(**args) @x = args[:x] if args.key?(:x) @y = args[:y] if args.key?(:y) end |