class Google::Apis::SlidesV1::AffineTransform
AffineTransform
uses a 3x3 matrix with an implied last row of [ 0 0 1 ] to transform source coordinates (x,y) into destination coordinates (x', y') according to: x' x = shear_y
scale_y
translate_y
1 [ 1 ] After transformation, x' = scale_x
* x + shear_x
* y + translate_x
; y' = scale_y
* y + shear_y
* x + translate_y
; This message is therefore composed of these six matrix elements.
Attributes
The X coordinate scaling element. Corresponds to the JSON property `scaleX` @return [Float]
The Y coordinate scaling element. Corresponds to the JSON property `scaleY` @return [Float]
The X coordinate shearing element. Corresponds to the JSON property `shearX` @return [Float]
The Y coordinate shearing element. Corresponds to the JSON property `shearY` @return [Float]
The X coordinate translation element. Corresponds to the JSON property `translateX` @return [Float]
The Y coordinate translation element. Corresponds to the JSON property `translateY` @return [Float]
The units for translate elements. Corresponds to the JSON property `unit` @return [String]
Public Class Methods
# File lib/google/apis/slides_v1/classes.rb, line 68 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/slides_v1/classes.rb, line 73 def update!(**args) @scale_x = args[:scale_x] if args.key?(:scale_x) @scale_y = args[:scale_y] if args.key?(:scale_y) @shear_x = args[:shear_x] if args.key?(:shear_x) @shear_y = args[:shear_y] if args.key?(:shear_y) @translate_x = args[:translate_x] if args.key?(:translate_x) @translate_y = args[:translate_y] if args.key?(:translate_y) @unit = args[:unit] if args.key?(:unit) end