Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Affine Transform
Search
USAMI Kosuke
June 25, 2014
Programming
0
190
Affine Transform
Lightning Talk
フェンリル社内勉強会
USAMI Kosuke
June 25, 2014
Tweet
Share
More Decks by USAMI Kosuke
See All by USAMI Kosuke
Onsager代数とその周辺 / Onsager algebra tsudoi
usamik26
0
380
Apple HIG 正式名称クイズ結果発表 / HIG Quiz Result
usamik26
0
66
ゆめみ大技林製作委員会の立ち上げの話 / daigirin project
usamik26
0
250
@ViewLoadingプロパティラッパの紹介と自前で実装する方法 / @ViewLoading property wrapper implementation
usamik26
0
360
これからUICollectionViewを実践活用する人のためのガイド / Guide to UICollectionView
usamik26
1
610
Xcodeとの最近の付き合い方のはなし / Approach To Xcode
usamik26
2
530
UICollectionView Compositional Layout
usamik26
0
540
Coding Swift with Visual Studio Code and Docker
usamik26
0
350
Swift Extension for Visual Studio Code
usamik26
2
750
Other Decks in Programming
See All in Programming
Ruby製社内ツールのGo移行
bgpat
2
330
StreamlitとTerraformでデータカタログを作った話
gussan0223
0
300
Milestoner
bkuhlmann
1
400
Rails と人魚の話/rails-and-mermaid
sanfrecce_osaka
0
100
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
220
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
340
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
3
270
SwiftUI Performance 不要なViewの再描画と更新を抑える
bigamitiongit
1
160
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
250
try! Swift Tokyo 初参加報告LT
hinakko2
0
190
try! Swift Tokyo 2024 参加報告 / try! Swift Tokyo 2024 Report
hironytic
0
170
What We Can Learn From OSS
inouehi
0
400
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
92
4.8k
Embracing the Ebb and Flow
colly
79
4.1k
Documentation Writing (for coders)
carmenintech
59
3.9k
Making the Leap to Tech Lead
cromwellryan
123
8.5k
Designing Experiences People Love
moore
136
23k
GitHub's CSS Performance
jonrohan
1023
450k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
39
4.4k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Statistics for Hackers
jakevdp
789
220k
Docker and Python
trallard
33
2.7k
Building a Modern Day E-commerce SEO Strategy
aleyda
16
6.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
6
990
Transcript
ΞϑΟϯมͷ Ӊࠤݟ ެี
Ͳ͜Ͱग़ͯ͘Δ͔
ϏϡʔΛมܗ͢Δ • iOS Ͱͷྫ : CGAffineTransform • UIView ͷ transform
ϓϩύςΟɿฏߦҠಈɺ ֦େॖখɺճసɺͳͲ
ϑΥϯτΛมܗ͢Δ • CTFontCreate ͷҾʹ͢ : ࣼମϑΥϯτΛ ࡞Δ
ΞϑΟϯม ਤܗͷมܗʹΘΕ͍ͯΔ
ਤܗͷมܗ
ਤܗͷมܗ • ߹ಉมʢϢʔΫϦουมʣ • ૬ࣅม • ΞϑΟϯม • ࣹӨม
߹ಉม • ฏߦҠಈɺճసɺస • ͞Λอͭ • ֯Λอͭ • → ਤܗͷܗେ͖͞Λม͑ͳ͍
૬ࣅม • ߹ಉม + ֦େɾॖখ • ͞ͷൺΛอͭʢ͞Λอͨͳ͍ʣ • ֯Λอͭ •
→ ਤܗͷܗΛม͑ͳ͍ʢେ͖͞มΘΔʣ
ΞϑΟϯม • ૬ࣅม + Ⴉஅมܗʢਖ਼ํܗΛඛܗʹʣ • ͞ͷൺΛอͭ • ฏߦੑΛอͭʢ֯ੑΛอͨͳ͍ʣ •
→ ਤܗͷܗ͕มΘΔʢࣼΊʹͳΔʣ
ࣹӨม • ΞϑΟϯม + ઔܗมܗ • ͞ͷൺΛอͨͳ͍ • ઢੑΛอͭʢฏߦੑɾ֯ੑΛอͨͳ͍ʣ •
→ ਤܗͷܗ͕มΘΔ
ΞϑΟϯมͷΠϝʔδ ܗมΘΔ͚Ͳɺฏߦͳͷฏߦͳ··
ΞϑΟϯม = ฏߦҠಈɺճసɺసɺ ֦େॖখɺႩஅ
มͷࣜ
Lightning Talk ͳͷͰܰΊʹ
ճసͷࣜ ✓ x 0 y 0 ◆ = ✓ cos(t)
sin(t) sin(t) cos(t) ◆ ✓ x y ◆
ฏߦҠಈʴճసͷࣜ ✓ x 0 y 0 ◆ = ✓ cos(t)
sin(t) sin(t) cos(t) ◆ ✓ x y ◆ + ✓ e f ◆
ΞϑΟϯมͷࣜ ✓ x 0 y 0 ◆ = ✓ a
b c d ◆ ✓ x y ◆ + ✓ e f ◆
มͷ߹ ʢߦྻදݱͷϝϦοτʣ ✓ a1 b1 c1 d1 ◆ ✓ a2
b2 c2 d2 ◆
ಉ࣍࠲ඪʹΑΔදݱ ʢฏߦҠಈߦྻʹؚΊΔʣ 0 @x 0 y 0 1 1 A
= 0 @a b e c d f 0 0 1 1 A 0 @x y 1 1 A
·ͱΊ
ΞϑΟϯม ؆୯ʹ͑ͯศརͳͷͰ ͓ͬͯ͘ͱΑ͍