Skip to content

Commit

Permalink
Add matrix notes for p5-Renard-Jacquard
Browse files Browse the repository at this point in the history
  • Loading branch information
zmughal committed Mar 23, 2018
1 parent 0f490af commit 4833377
Showing 1 changed file with 128 additions and 5 deletions.
133 changes: 128 additions & 5 deletions doc/development/repo/p5-Renard-Jacquard/index.mdwn
Expand Up @@ -19,12 +19,135 @@ See [[Jacquard loom|https://en.wikipedia.org/wiki/Jacquard_loom]].

## Transformation order

### Rect sizes

[[!teximg code="""
\begin{aligned}
r_0 : [ 2 , 0.5 ] \times [ 100, 200 ] &= [ 200, 100 ]\\
r_1 : [ 1 , 0.8 ] \times [ 100, 200 ] &= [ 100, 160 ] \\
r_2 : [ 2.5 , 0.8 ] \times [ 100, 200 ] &= [ 250, 160 ] \\
r_3 : [ 1 , 1.0 ] \times [ 100, 200 ] &= [ 100, 200 ] \\
\end{aligned}
"""]]

### What is currently happening:

#### Placement

[[!teximg code="""
\begin{aligned}
r_0 &: [ 0 ,& 0 ] \\
r_1 &: [ 250 ,& 0 ] \\
r_2 &: [ 0 ,& 128 ] \\
r_3 &: [ 250 ,& 160 ] \\
\end{aligned}
"""]]

#### Matrices

[[!teximg code="""
\begin{pmatrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1 \\
\end{pmatrix}
\begin{aligned}
r_2 &= \underbrace{
I
}_{\text{\textbf{All}}}
%
\underbrace{
\begin{pmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 160 & 0 & 1 \\
\end{pmatrix}
}_{\text{\textbf{Autofill(2,2)}}}
\underbrace{
\begin{pmatrix}
2.5 & 0 & 0 & 0 \\
0 & 0.8 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \\
\end{pmatrix}
}_{\text{\textbf{Affine}}} \\
&=
\begin{pmatrix}
2.5 & 0 & 0 & 0 \\
0 & 0.8 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 128 & 0 & 1 \\
\end{pmatrix}
\\
\end{aligned}
"""]]

[[!format txt """
>> r_2 = eye(4) * [ eye(3,4) ; 20 160 0 1 ] * diag( [2.5 0.8 1 1 ] )
r_2 =

2.5000 0 0 0
0 0.8000 0 0
0 0 1.0000 0
50.0000 128.0000 0 1.0000
"""]]

### What needs to happen:

#### Placement

[[!teximg code="""
\begin{aligned}
r_0 &: [ 0 ,& 0 ] \\
r_1 &: [ 250 ,& 0 ] \\
r_2 &: [ 0 ,& 160 ] \\
r_3 &: [ 250 ,& 160 ] \\
\end{aligned}
"""]]

#### Matrices

[[!teximg code="""
\begin{aligned}
r_2 &=
\underbrace{
\begin{pmatrix}
2.5 & 0 & 0 & 0 \\
0 & 0.8 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \\
\end{pmatrix}
}_{\text{\textbf{Affine}}}
%
\underbrace{
I
}_{\text{\textbf{All}}}
%
\underbrace{
\begin{pmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 160 & 0 & 1 \\
\end{pmatrix}
}_{\text{\textbf{Autofill(2,2)}}} \\
&=
\begin{pmatrix}
2.5000 & 0 & 0 & 0 \\
0 & 0.8000 & 0 & 0 \\
0 & 0 & 1.0000 & 0 \\
0 &160.0000 & 0 & 1.0000 \\
\end{pmatrix}
\\
\end{aligned}
"""]]

[[!format txt """
>> r_2 = diag( [2.5 0.8 1 1 ] ) * eye(4) * [ eye(3,4) ; 0 160 0 1 ]
r_2 =

2.5000 0 0 0
0 0.8000 0 0
0 0 1.0000 0
0 160.0000 0 1.0000
"""]]

## UML
Expand Down

0 comments on commit 4833377

Please sign in to comment.