# 4 - Affine Space / Frame / Matrix
# Outline
- Affine Space - Point vs. Vector
- Coordinate System & Reference Frame
- Affine Transformation Matrix
- Interpretation of Composite Transformations
# Affine Space - Point vs. Vector
- ๊ฐ๋ ์ ์ผ๋ก point์ vector๋ ๋งค์ฐ ๋ค๋ฆ
- ์ด ์ฐจ์ด๋ homogeneous coordinates๋ก ํํํ ์ ์์
- ์ด ๊ฐ์์์๋ affine space, point์ vector์ ์ฐจ์ด์ , ๊ทธ๋ฆฌ๊ณ ๊ทธ๊ฒ์ด homogeneous coordinates์ ์ด๋ป๊ฒ ์ฐ๊ฒฐ๋๋์ง๋ฅผ ํ์ตํจ
- ์ด ๊ฐ๋ ์ coordinate invariant ๋๋ coordinate-free geometric programming์ด๋ผ๊ณ ๋ ๋ถ๋ฆผ
(์ถ์ฒ: http://mrl.snu.ac.kr/courses/CourseGraphics/index_2017spring.html)
# Points
- Point $\mathbf{p}$, Point $\mathbf{q}$
- ์ด ๋ ์ ์ ๋ํ "sum"์ ๋ฌด์์ธ๊ฐ?
# If you assume coordinates, โฆ
- $\mathbf{p} = (x_1,~y_1)$
- $\mathbf{q} = (x_2,~y_2)$
- ํฉ: $(x_1+x_2,~y_1+y_2)$
- ์ด๊ฒ ๋ง๋๊ฐ?
- ๊ธฐํํ์ ์ผ๋ก ์๋ฏธ๊ฐ ์๋๊ฐ?
- ๋์ผํ ์ขํ ํํ์์,
- $\mathbf{p} = (x_1,~y_1)$
- $\mathbf{q} = (x_2,~y_2)$
- $(x_1+x_2,~y_1+y_2)$๋ ๋จ์ํ ํฉ์ด ์๋,
์์ ์์ $\mathbf{p}$์ $\mathbf{q}$๊น์ง ๊ฐ๋ vector์ ํฉ์ผ๋ก ๊ฐ์ฃผํด์ผ ํจ
โ Vector sum
# If you select a different origin, โฆ
- $\mathbf{p} = (x_1,~y_1)$
- $\mathbf{q} = (x_2,~y_2)$
- $(x_1+x_2,~y_1+y_2)$์ ์๋ฏธ๋
์ขํ๊ณ(์์ )๊ฐ ์ด๋์ธ์ง์ ๋ฐ๋ผ ๋ฌ๋ผ์ง - ์ฆ, ๋ค๋ฅธ coordinate frame์ ์ ํํ๋ฉด ๊ฒฐ๊ณผ๋ ๋ฌ๋ผ์ง
# Points and Vectors
- point๋ ์ขํ๊ฐ์ผ๋ก ์ ์๋ ์์น
- vector๋ ๋ ์ ์ฌ์ด์ ์ฐจ์ด๋ก ์ ์๋จ
- ์์ ์ด ์ ์๋์๋ค๋ฉด, point๋ ์์ ์์ ํด๋น point๊น์ง์ vector๋ก ํํ ๊ฐ๋ฅ
- ํ์ง๋ง coordinate-free ๊ด์ ์์๋ point๋ vector๊ฐ ์๋
# Points & Vectors are Different!
- ์ํ์ (๋๋ ๋ฌผ๋ฆฌ์ )์ผ๋ก,
- Point๋ ๊ณต๊ฐ์์ ์์น
- Vector๋ ๊ณต๊ฐ์์ ๋ณ์
- ์๊ฐ์ ๋น์ ํ๋ฉด ๋ค์๊ณผ ๊ฐ์:
- datetime์ ์๊ฐ์ ์์น
- duration์ ์๊ฐ์ ๋ณ์
# Vector and Affine Spaces
- Vector space
- ๋ฒกํฐ์ ๊ทธ ์ฐ์ฐ ํฌํจ
- ์ (points)์ ํฌํจํ์ง ์์
- Affine space
- vector space์ ์์ ๊ฐ๋
- ๋ฒกํฐ, ์ , ๊ทธ์ ๊ด๋ จ๋ ์ฐ์ฐ ๋ชจ๋ ํฌํจ
# Vector spaces
- A vector space๋ ๋ค์์ผ๋ก ๊ตฌ์ฑ๋จ:
- ๋ฒกํฐ ์งํฉ๊ณผ
- ๋ ๊ฐ์ง ์ฐ์ฐ:
- ๋ฒกํฐ ๊ฐ ๋ง์
- ์ค์นผ๋ผ ๊ณฑ
# Linear Combination
- ๋ฒกํฐ๋ค์ ์ ํ ๊ฒฐํฉ(linear combination) ๋ํ ๋ฒกํฐ์
$$ \mathbf{u}_0, \mathbf{u}_1, \dots, \mathbf{u}_n \in V \\ \Rightarrow c_0 \mathbf{u}_0 + c_1 \mathbf{u}_1 + \dots + c_n \mathbf{u}_n \in V $$
# Affine Spaces
- An affine space๋ ๋ค์์ผ๋ก ๊ตฌ์ฑ๋จ:
- ์ ๋ค์ ์งํฉ, ๊ด๋ จ๋ ๋ฒกํฐ ๊ณต๊ฐ
- ๋ ๊ฐ์ง ์ฐ์ฐ:
- ๋ ์ ์ ์ฐจ์ด
- ์ + ๋ฒกํฐ
# Coordinate-Free Geometric Operations
- ๋ง์ (Addition)
- ๋บ์ (Subtraction)
- ์ค์นผ๋ผ ๊ณฑ (Scalar multiplication)
# Addition
- $\mathbf{u}, \mathbf{v}, \mathbf{w}$: vectors
- $\mathbf{p}, \mathbf{q}$: points
๋ผ๊ณ ํ ๋, - $\mathbf{u} + \mathbf{v} \rightarrow$ vector
- $\mathbf{p} + \mathbf{w} \rightarrow$ point
# Subtraction
- $\mathbf{u} - \mathbf{v} \rightarrow$ vector
- $\mathbf{p} - \mathbf{q} \rightarrow$ vector
- $\mathbf{p} - \mathbf{w} \rightarrow$ point
# Scalar Multiplication
- ์ค์นผ๋ผ โ
๋ฒกํฐ = ๋ฒกํฐ
- $c \cdot \mathbf{v} \rightarrow$ vector
- $1 \cdot$ point = point
- $0 \cdot$ point = vector
- $c \cdot$ point = (undefined) $~\text{if} ~(c \neq 0,~1)$
# Affine Frame
- A frame์ ๋ค์์ผ๋ก ์ ์๋จ:
- ๋ฒกํฐ๋ค์ ์งํฉ $ \{ \mathbf{v}_i~| ~ i = 1, \dots, N \}$
- ๊ธฐ์ค์ $\mathbf{o}$
- ๋ฒกํฐ๋ค์ ์งํฉ ${\mathbf{v}_i}$๋ ํด๋น vector space์ bases
- $\mathbf{o}$๋ ํด๋น frame์ origin
- $N$์ affine space์ dimension
- ์์์ ์ $\mathbf{p}$๋ ๋ค์๊ณผ ๊ฐ์ด ํํ๋จ: $$ \mathbf{p} = \mathbf{o} + c_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 + \dots + c_n \mathbf{v}_n $$
- ์์์ ๋ฒกํฐ $\mathbf{v}$๋ ๋ค์๊ณผ ๊ฐ์ด ํํ๋จ: $$ \mathbf{v} = c_1 \mathbf{v}_1 + c_2 \mathbf{v}_2 + \dots + c_n \mathbf{v}_n $$
# Summary
- Affine space์์: $$ \begin{aligned} \mathbf{p} + \mathbf{p} & = \text{(undefined)} \\ \mathbf{p} - \mathbf{p} & = \text{vector} \\ \mathbf{p} \pm \mathbf{v} & = \text{point} \\ \mathbf{v} \pm \mathbf{v} & = \text{vector} \\ c \cdot \mathbf{v} & = \text{vector} \\ 1 \cdot \mathbf{p} & = \text{point} \\ 0 \cdot \mathbf{p} & = \text{vector} \\ c \cdot \mathbf{p} & = \text{(undefined)} \quad (c \neq 0, 1) \end{aligned} $$
# Points & Vectors in Homogeneous Coordinates
- Homogeneous coordinates์์๋,
- 3D point: $ (x, y, z, \mathbf{1}) $
- 3D vector: $ (x, y, z, \mathbf{0}) $
โ ์ด ํํ์ coordinate-free geometric programming์ ๊ฐ๋ ๊ณผ ์์ ํ๊ฒ ์ผ์นํ๋ ๋ชจ๋ธ์ ์ ๊ณตํจ
์์: $$ (x_1, y_1, z_1, 1) + (x_2, y_2, z_2, 1) \\= (x_1 + x_2, y_1 + y_2, z_1 + z_2, 2) \text{โ point (undefined)} $$
$$ (x_1, y_1, z_1, 1) - (x_2, y_2, z_2, 1) \\= (x_1 - x_2, y_1 - y_2, z_1 - z_2, 0) \text{โ vector} $$
$$ (x_1, y_1, z_1, 1) + (x_2, y_2, z_2, 0) \\= (x_1 + x_2, y_1 + y_2, z_1 + z_2, 1) \text{โ point} $$
$$ (x_1, y_1, z_1, 0) + (x_2, y_2, z_2, 0) \\= (x_1 + x_2, y_1 + y_2, z_1 + z_2, 0) \text{โ vector} $$
$$ c \cdot (x, y, z, 0) \\= (cx, cy, cz, 0) \text{โ vector} $$
$$ c \cdot (x, y, z, 1) \\= (cx, cy, cz, c) \text{โ} \begin{cases} \text{point} & \text{if } c = 1 \\ \text{vector} & \text{if } c = 0 \\ \text{undefined} & \text{if } c \ne 0, 1 \end{cases} $$
- Affine transformation matrix์ point, vector์ ๊ณฑ:
$$ \begin{bmatrix} \mathbf{M} & \mathbf{t} \\ \mathbf{0}^\mathrm{T} & 1 \end{bmatrix} \begin{bmatrix} \mathbf{p} \\ 1 \end{bmatrix} = \begin{bmatrix} \mathbf{M} \mathbf{p} + \mathbf{t} \\ 1 \end{bmatrix} \text{โ point} $$
$$ \begin{bmatrix} \mathbf{M} & \mathbf{t} \\ \mathbf{0}^\mathrm{T} & 1 \end{bmatrix} \begin{bmatrix} \mathbf{v} \\ 0 \end{bmatrix} = \begin{bmatrix} \mathbf{M} \mathbf{v} \\ 0 \end{bmatrix} \text{โ vector} $$
โ translation์ vector์๋ ์ ์ฉ๋์ง ์์!
# Quiz 1
# Coordinate System & Reference Frame
Coordinate system
- ์ ์ ์์น๋ฅผ ๊ณ ์ ํ๊ฒ ๊ฒฐ์ ํ๊ธฐ ์ํด ํ๋ ์ด์์ ์ซ์ ๋๋ ์ขํ๋ฅผ ์ฌ์ฉํ๋ ์ฒด๊ณ
Reference frame
- ์ถ์์ ์ธ ์ขํ๊ณ + ์ค์ ๊ธฐ์ค์
- ์ขํ๊ณ๋ฅผ ๊ณ ์ ์ํค๊ธฐ ์ํด ์ฌ์ฉ๋จ
์ด ๋ ์ฉ์ด๋ ์ข ์ข ํผ์ฉ๋์ง๋ง, ์๋ฏธ์๋ ์ฝ๊ฐ์ ์ฐจ์ด๊ฐ ์์
# World / Body Frame (or Coordinate System)
World frame (or coordinate system)
- ์ธ๊ณ์ ๊ณ ์ ๋ ์ขํ๊ณ
- aka. global frame, fixed frame
Body frame (or coordinate system)
- ๋ฌผ์ฒด์ ๊ณ ์ ๋ ์ขํ๊ณ
- aka. local frame
# Meanings of Affine Transformation Matrix
- ํ๋์ affine transformation matrix๋
์ฌ๋ฌ ๊ด์ ์์ ํด์ ๊ฐ๋ฅํจ
# 1) Affine Transformation Matrix Transforms a Geometry w.r.t. World Frame
ํ๋ ฌ $\mathbf{M}$์ ๊ธฐํ ๊ฐ์ฒด์ ๊ฐ vertex ์์น๋ฅผ world frame ๊ธฐ์ค์์ ์๋ก์ด ์์น๋ก ๋ณํ
๋ณํ ํฌํจ: translate, rotate, scale ๋ฑ
$$ \mathbf{M} = \begin{bmatrix} m_{11} & m_{12} & m_{13} & u_x \\ m_{21} & m_{22} & m_{23} & u_y \\ m_{31} & m_{32} & m_{33} & u_z \\ 0 & 0 & 0 & 1 \end{bmatrix} $$
- $\mathbf{M}$์ ๊ณฑํ๋ฉด geometry๊ฐ world frame์์ ๋ค๋ฅธ ์์น๋ก ์ด๋๋ ๊ฒฐ๊ณผ๋ฅผ ์ป๊ฒ ๋จ
# Review: Affine Frame
- Affine frame (3D ๊ณต๊ฐ ๊ธฐ์ค)์ ๋ค์์ผ๋ก ์ ์๋จ:
- $x,~y,~z$์ถ์ ๋ํ๋ด๋ 3๊ฐ์ ๋ฒกํฐ
- 1๊ฐ์ ์์ ์์น(์ขํ)
# World Frame
- World frame์ ๋ณดํต ๋ค์์ผ๋ก ํํ๋จ:
- ํ์ค ์ถ ๋ฒกํฐ
$$ \hat{\mathbf{e}}_x = \begin{bmatrix}1 \\ 0 \\ 0\end{bmatrix}~ \hat{\mathbf{e}}_y = \begin{bmatrix}0 \\ 1 \\ 0\end{bmatrix}~ \hat{\mathbf{e}}_z = \begin{bmatrix}0 \\ 0 \\ 1\end{bmatrix} $$ - ์์
$$ \mathbf{0}= \begin{bmatrix}0 \\ 0 \\ 0\end{bmatrix} $$
- ํ์ค ์ถ ๋ฒกํฐ
# Letโs Transform a "World Frame"
- $\mathbf{M}$์ world frame์ ๊ณฑํ๋ฉด, ๊ฐ ์ถ ๋ฒกํฐ ๋ฐ ์์ ์ด ๋ณํ๋จ:
$ \text{x-axis:} \quad \mathbf{M} \begin{bmatrix}1 \\ 0 \\ 0 \\ 0\end{bmatrix} $ : ์ฒซ ๋ฒ์งธ column
$ \text{y-axis:} \quad \mathbf{M} \begin{bmatrix}0 \\ 1 \\ 0 \\ 0\end{bmatrix} $ : ๋ ๋ฒ์งธ column
$ \text{z-axis:} \quad \mathbf{M} \begin{bmatrix}0 \\ 0 \\ 1 \\ 0\end{bmatrix} $ : ์ธ ๋ฒ์งธ column
$ \text{origin:} \quad \mathbf{M} \begin{bmatrix}0 \\ 0 \\ 0 \\ 1\end{bmatrix} $ : ๋ค ๋ฒ์งธ column
# 2) Affine Transformation Matrix Defines an Affine Frame w.r.t. World Frame
- ํ๋ ฌ $\mathbf{M}$์ ๊ธฐ์ค ํ๋ ์ $\{0\}$ ๊ธฐ์ค์ผ๋ก ํํ๋ body frame $\{1\}$์ ์ ์
- $\mathbf{M}$์ ๊ฐ column์ ๋ค์์ ๋ํ๋:
- ์์ 3๊ฐ column: ์ถ ๋ฒกํฐ
- ๋ง์ง๋ง column: ์์ ์์น
โ $\mathbf{M}$์ body frame $\{1\}$์ world frame $\{0\}$ ๊ธฐ์ค์ผ๋ก ํํํ ๊ฒ
# Examples
- ๊ฐ์ ๋ฌผ์ฒด์ body frame์ ๋ ๋ฐฉ์์ผ๋ก ์ ์:
- world frame๊ณผ ๋์ผํ ์์น์ผ ๋
- ์ด๋๋ ์์น์์ ์ ์๋ ๋
โ ๋ ๊ฒฝ์ฐ ๋ชจ๋ $\mathbf{M}$์ body frame์ world ๊ธฐ์ค์ผ๋ก ํํํจ
# 3) Affine Transformation Matrix Transforms a Point in Body Frame to (the same) Point (but) represented in World Frame
- $ \mathbf{p}^{\{1\}} = \begin{bmatrix}1 \\ 1 \\ 0\end{bmatrix} $
(body frame $\{1\}$ ๊ธฐ์ค์ ์ ) $$ \mathbf{p}^{\{0\}} = \mathbf{M} \cdot \mathbf{p}^{\{1\}} $$ - ๊ฐ์ ์ ์ world frame $\{0\}$ ๊ธฐ์ค์ผ๋ก ํํํ ๊ฒ
Why? - ๋์ผํ ๋ฌผ์ฒด๋ฅผ body frame์์ ๋ณด๋ค๊ฐ $\mathbf{M}$์ ํตํด world frame ๊ธฐ์ค ํํ์ผ๋ก ๋ณํํ ๊ฒ: $$ \mathbf{p}^{\{0\}} = \mathbf{M} \cdot \mathbf{p}^{\{1\}} $$
- ๋จ์ํ geometry๋ฅผ ๋ณํํ ์ด์ผ๊ธฐ์
# Directions of the "arrow"
- ์ฒซ ๋ฒ์งธ ์๋ฏธ
- geometry ์์ฒด๋ฅผ transform (frame์ ๊ทธ๋๋ก)
- $\mathbf{M}$์ ๋ณํ์ ๋ฐฉํฅ์ ๋ํ๋: ${\{0\}}\rightarrow{\{1\}}$
โ $\mathbf{p}^{\{0\}}$๊ฐ ๋ณํ๋์ด $\mathbf{p}^{\{1\}}$์ด ๋จ.
- ๋ ๋ฒ์งธ ์๋ฏธ
- frame ์์ฒด์ ๋ณํ
- ${\{1\}}$ ํ๋ ์์ด ${\{0\}}$ ๊ธฐ์ค์ผ๋ก ์ด๋ป๊ฒ ๋ณด์ด๋์ง๋ฅผ ๋ํ๋
- ์ธ ๋ฒ์งธ ์๋ฏธ
- $\mathbf{p}$๋ผ๋ ์ ์ด ํํ๋๋ ํ๋ ์ ์์ฒด๋ฅผ ๋ฐ๊พธ๋ ๊ณผ์ โ "ํํ์ ๊ธฐ์ค"์ด ๋ฐ๋: $\{0\}$์์ ๋ณธ $\mathbf{p}$๋ฅผ $\{1\}$์์ ๋ณธ $\mathbf{p}$๋ก ๋ณํํ๋ ๊ฒ
# Quiz 2
# All these concepts work even if the starting frame is not world frame!
- ์์ ํ๋ ์์ด world frame์ด ์๋์ด๋, ์ง๊ธ๊น์ง์ ๋ชจ๋ ๊ฐ๋ ์ ๊ทธ๋๋ก ์ ์ฉ ๊ฐ๋ฅ
# {0} to {1}
- $\mathbf{M}_1$์ ๋ค์์ ์ํ:
- ํ๋ ์ $\{0\}$ ๊ธฐ์ค์์ geometry๋ฅผ ๋ณํ
- ํ๋ ์ $\{0\}$ ๊ธฐ์ค์์ ํ๋ ์ $\{1\}$์ ์ ์
- ํ๋ ์ $\{1\}$ ๊ธฐ์ค์ ์ ์ $\{0\}$ ๊ธฐ์ค์ผ๋ก ํํ
$$ \mathbf{p}^{\{0\}} = \mathbf{M}_1 \cdot \mathbf{p}^{\{1\}} $$
# {1} to {2}
- $\mathbf{M}_2$๋ ๋ค์์ ์ํ:
- ํ๋ ์ $\{1\}$ ๊ธฐ์ค์์ geometry๋ฅผ ๋ณํ
- ํ๋ ์ $\{1\}$ ๊ธฐ์ค์์ ํ๋ ์ ๋ฅผ ์ ์
- ํ๋ ์ $\{2\}$ ๊ธฐ์ค์ ์ ์ $\{1\}$ ๊ธฐ์ค์ผ๋ก ํํ
$$ \mathbf{p}^{\{1\}} = \mathbf{M}_2 \cdot \mathbf{p}^{\{2\}} $$
# {0} to {2}
- $\mathbf{M}_1 \mathbf{M}_2$๋ ๋ค์์ ์ํ:
- ํ๋ ์ $\{0\}$ ๊ธฐ์ค์์ geometry๋ฅผ ๋ณํ
- ํ๋ ์ $\{0\}$ ๊ธฐ์ค์์ ํ๋ ์ $\{2\}$๋ฅผ ์ ์
- ํ๋ ์ $\{2\}$ ๊ธฐ์ค์ ์ ์ $\{0\}$ ๊ธฐ์ค์ผ๋ก ํํ
$$ \mathbf{p}^{\{0\}} = \mathbf{M}_1 \cdot \mathbf{M}_2 \cdot \mathbf{p}^{\{2\}} $$
# Revisit: Order Matters!
- $\mathbf{T}, \mathbf{R}$์ด affine transformation์ ๋ํ๋ด๋ ํ๋ ฌ์ผ ๋: $$ \mathbf{p}' = \mathbf{T} \cdot \mathbf{R} \cdot \mathbf{p} \\\Rightarrow \text{ ๋จผ์ } \mathbf{R}(\mathbf{p}) \text{ ์ ์ฉ, ๊ทธ ํ } \mathbf{T} $$ $$ \mathbf{p}' = \mathbf{R} \cdot \mathbf{T} \cdot \mathbf{p} \\\Rightarrow \text{ ๋จผ์ } \mathbf{T}(\mathbf{p}) \text{ ์ ์ฉ, ๊ทธ ํ } \mathbf{R} $$
- โ ํ๋ ฌ์ ๊ณฑ์
์์๋ ๋งค์ฐ ์ค์ํจ!
- ๊ฒฐํฉ๋ฒ์น์ ์ฑ๋ฆฝํ์ง๋ง ๊ตํ๋ฒ์น์ ์ฑ๋ฆฝํ์ง ์์: $AB \ne BA$
# Composite(๋ณตํฉ) Transformations์ Interpretation(ํด์)
- ์์ transformation:
$$ \mathbf{M} = \mathbf{T}(x,~3) \cdot \mathbf{R}(-90^\circ) $$ - ์ง๊ธ๊น์ง ํด์ํ๋ ๋ฐฉ์:
- $\mathbf{R} \rightarrow \mathbf{T}$ ์์๋ก ์ ์ฉ
- $\mathbf{R}$์ world frame ๊ธฐ์ค ๋ณํ $$ \mathbf{p} \xrightarrow{\mathbf{R}(-90^\circ)} \mathbf{R}(\mathbf{p}) \\\xrightarrow{\mathbf{T}(x, 3)} \mathbf{p}' = \mathbf{T}(\mathbf{R}(\mathbf{p})) $$
- ๋ค๋ฅธ ํด์ ๋ฐฉ์:
- $\mathbf{R} \rightarrow \mathbf{T}$ ์์๊ฐ ์๋, $\mathbf{T} \rightarrow \mathbf{R}$ ์์๋ก ํด์
- ์ฆ, body frame ๊ธฐ์ค์์ ํด์ํ๋ ๋ฐฉ์ $$ \mathbf{p} \rightarrow \mathbf{T}(\mathbf{p}) \rightarrow \mathbf{R}(\mathbf{T}(\mathbf{p})) = \mathbf{M}(\mathbf{p}) = \mathbf{p}' $$ โ ๋์ผํ ํ๋ ฌ์ด๋ผ๋ ๊ธฐ์ค ํ๋ ์์ ๋ฐ๋ผ ํด์์ด ๋ฌ๋ผ์ง ์ ์์
# Pre-(left) & Post-(right) Multiplication
# Pre-multiplication:
$$ \mathbf{p}' = \mathbf{M}_1 \cdot \mathbf{M}_2 \cdot \mathbf{p} \\ (\text{pre-multiplication by } \mathbf{M}_1) $$
โ Right-to-Left ์์
- $\mathbf{M}_2$๋ฅผ world frame ๊ธฐ์ค์ผ๋ก ์ ์ฉํ์ฌ $\mathbf{p}$๋ฅผ ๋ณํ
- ๊ทธ ๊ฒฐ๊ณผ์ $\mathbf{M}_1$์ ๋ค์ world frame ๊ธฐ์ค์ผ๋ก ์ ์ฉ
โ ์ ์ฒด ๋ณํ์ $\mathbf{M}_1 \mathbf{M}_2$
# Post-multiplication:
$$ \mathbf{p}' = \mathbf{M}_1 \cdot \mathbf{M}_2 \cdot \mathbf{p} \\ (\text{post-multiplication by } \mathbf{M}_1) $$
โ Left-to-Right ์์
- $\mathbf{p}$๋ body frame $\{1\}$ ๊ธฐ์ค์์ ํํ๋์ด ์์
- $\mathbf{M}_1$์ body frame $\{1\}$์ world frame ๊ธฐ์ค์ผ๋ก ์ ๋ฐ์ดํธํจ
- $\mathbf{M}_2$๋ ์ด์ด์ body frame $\{2\}$๋ก ์ ๋ฐ์ดํธํจ
- ๊ฒฐ๊ณผ์ ์ผ๋ก $\mathbf{p}$๋ body frame $\{2\}$ ๊ธฐ์ค์์ ํํ๋จ
โ ์ ์ฒด ๋ณํ์ ์ฌ์ ํ $\mathbf{M}_1 \mathbf{M}_2$
# ๋ ๋ค๋ฅธ ์ ์ฉํ ํด์๋ฒ
- $\mathbf{M}_1$: world frame ๊ธฐ์ค์ผ๋ก ์ ์ฉํ์ฌ body frame์ $\mathbf{M}_1$์ผ๋ก ์ ๋ฐ์ดํธ
- $\mathbf{M}_2$: ๋ค์ world frame ๊ธฐ์ค์ผ๋ก ์ ์ฉํ์ฌ body frame์ $\mathbf{M}_1 \mathbf{M}_2$๋ก ์ ๋ฐ์ดํธ
- $\mathbf{p}$๋ฅผ ์๋ก์ด body frame $\mathbf{M}_1 \mathbf{M}_2$ ๊ธฐ์ค์ผ๋ก ์์น์ํด
# [Demo] L-to-R & R-to-L Interpretation
observablehq.com/@esperanc/transformation-demo (opens new window)
- ๋ค์ํ ์์๋ก translation ๋ฐ ์ ํ ๋ณํ ์ถ๊ฐ ( '+' ๋ฒํผ ์ฌ์ฉ)
- ์ฌ๋ผ์ด๋๋ฅผ ๋๋๊ทธํ์ฌ ํ๋ ฌ ๊ฐ์ ๋ณํ ๋ฐ ๋ํ์ ๋ณํ๋ฅผ ๊ด์ฐฐ
- ํฉ์ฑ ๋ณํ์ ์๋ฏธ๋ฅผ L-to-R, R-to-L ์์๋ก ํด์ํด๋ณด์ธ์