GoogleApi.Slides.V1.Model.AffineTransform (google_api_slides v0.24.0)

View Source

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

  • scaleX (type: float(), default: nil) - The X coordinate scaling element.
  • scaleY (type: float(), default: nil) - The Y coordinate scaling element.
  • shearX (type: float(), default: nil) - The X coordinate shearing element.
  • shearY (type: float(), default: nil) - The Y coordinate shearing element.
  • translateX (type: float(), default: nil) - The X coordinate translation element.
  • translateY (type: float(), default: nil) - The Y coordinate translation element.
  • unit (type: String.t, default: nil) - The units for translate elements.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Slides.V1.Model.AffineTransform{
  scaleX: float() | nil,
  scaleY: float() | nil,
  shearX: float() | nil,
  shearY: float() | nil,
  translateX: float() | nil,
  translateY: float() | nil,
  unit: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.