Class: Google::Apis::TranscoderV1::NormalizedCoordinate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NormalizedCoordinate

Returns a new instance of NormalizedCoordinate.



1427
1428
1429
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1427

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#xFloat

Normalized x coordinate. Corresponds to the JSON property x

Returns:

  • (Float)


1420
1421
1422
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1420

def x
  @x
end

#yFloat

Normalized y coordinate. Corresponds to the JSON property y

Returns:

  • (Float)


1425
1426
1427
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1425

def y
  @y
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1432
1433
1434
1435
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1432

def update!(**args)
  @x = args[:x] if args.key?(:x)
  @y = args[:y] if args.key?(:y)
end