Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Affine Transform

Affine Transform

Lightning Talk
フェンリル社内勉強会

USAMI Kosuke

June 25, 2014
Tweet

More Decks by USAMI Kosuke

Other Decks in Programming

Transcript

  1. ϏϡʔΛมܗ͢Δ • iOS Ͱͷྫ : CGAffineTransform • UIView ͷ transform

    ϓϩύςΟɿฏߦҠಈɺ ֦େॖখɺճసɺͳͲ
  2. ճసͷ਺ࣜ ✓ x 0 y 0 ◆ = ✓ cos(t)

    sin(t) sin(t) cos(t) ◆ ✓ x y ◆
  3. ฏߦҠಈʴճసͷ਺ࣜ ✓ x 0 y 0 ◆ = ✓ cos(t)

    sin(t) sin(t) cos(t) ◆ ✓ x y ◆ + ✓ e f ◆
  4. ΞϑΟϯม׵ͷ਺ࣜ ✓ x 0 y 0 ◆ = ✓ a

    b c d ◆ ✓ x y ◆ + ✓ e f ◆