Hello, Mathit!

수식과 정밀한 기하 다이어그램을 코드로 기술하고 렌더링하는 문서 그래픽 언어.

Why Mathit?

TikZ는...

\begin{tikzpicture}[x={(0.866cm,0.5cm)}, y={(-0.866cm,0.5cm)}, z={(0cm,1cm)}]
  \draw[->] (-1,0,0) -- (5,0,0) node[right] {$x$};
  \draw[->] (0,-1,0) -- (0,5,0) node[above] {$y$};
  \draw[->] (0,0,-1) -- (0,0,5) node[above] {$z$};

  \coordinate (A) at (0,0,0); \coordinate (B) at (4,0,0);
  \coordinate (C) at (4,4,0); \coordinate (D) at (0,4,0);
  \coordinate (E) at (0,0,4); \coordinate (F) at (4,0,4);
  \coordinate (G) at (4,4,4); \coordinate (H) at (0,4,4);

  \draw[dashed] (A) -- (B); \draw[dashed] (A) -- (D); \draw[dashed] (A) -- (E);
  \draw (B) -- (C) -- (G) -- (F) -- cycle;
  \draw (D) -- (C); \draw (E) -- (F); \draw (E) -- (H) -- (G); \draw (D) -- (H);

  \coordinate (P1) at (0,0,0);
  \coordinate (P2) at (4.33,0,0);
  \coordinate (P3) at (2.414,3.828,0);

  \draw[red, ultra thick] (P1) -- (P2) -- (P3) -- cycle;

  \node[left, xshift=-2pt] at (P1) {$A$};
  \node[right, xshift=2pt] at (P2) {$B$};
  \node[above, yshift=3pt] at (P3) {$C$};
  \fill[red] (P1) circle (2pt) (P2) circle (2pt) (P3) circle (2pt);
\end{tikzpicture}

Mathit은?

@3d: cam(elev=35deg, azim=45deg, proj=oblique)

K = cube(size=4)
draw: K, hide=dash, thick=1.5pt

solve {
    A = (0, 0, 0)
    B = (?, 0, 0)
    C = (?, ?, 0)

    dist(A, B) == 5
    dist(B, C) == 7
    ang(C, A, B) == 30deg
    C.y == C.x^2 - 2
}

poly: A--B--C, stroke=2pt, color=#red
dot: A"A"(sw), B"B"(se), C"C"(nw)

이 문서가 도움이 되셨나요?

문서 개선에 반영할 솔직한 피드백을 선택해주세요.

Mathit Documentation 개발: Feynerin