Skip to content

Commit eb8e323

Browse files
author
James Brundage
committed
feat: Matrix4x4.get_MathML ( Fixes #31 )
1 parent 6614afc commit eb8e323

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎Types/Matrix4x4/get_MathML.ps1‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[xml]@"
2+
<math display='block'>
3+
<mo>[</mo>
4+
<mtable>
5+
$(
6+
foreach ($row in 1..4) {
7+
"<mtr>"
8+
foreach ($col in 1..4) {
9+
"<mtd><mn>$($this."M${row}${col}")</mn></mtd>"
10+
}
11+
"</mtr>"
12+
}
13+
)
14+
</mtable>
15+
<mo>]</mo>
16+
</math>
17+
"@
18+

0 commit comments

Comments
 (0)