1
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
/rde/contents/library/ps2img/cgi-bin/eqn2gif.cgi
157.118.206.41
1572944195 2019/11/05 17:56:35
Bresenham's\ line\ algorithm(\ x_{1},\ y_{1},\ x_{2},\ y_{2}\ )\\
\\
if\ x_{1}\leqq x_{2}\ then\\
\ \ \ \ d_{x}=x_{2}-x_{1}\\
\ \ \ \ s_{x}=1\\
else\\
\ \ \ \ d_{x}=x_{1}-x_{2}\\
\ \ \ \ s_{x}=-1\\
endif\\
\\
if\ y_{1}\leqq y_{2}\ then\\
\ \ \ \ d_{y}=y_{2}-y_{1}\\
\ \ \ \ s_{y}=1\\
else\\
\ \ \ \ d_{y}=y_{1}-y_{2}\\
\ \ \ \ s_{y}=-1\\
endif\\
\\
if\ d_{x}\geqq d_{y}\ then\\
\ \ \ \ a=2*d_{y}\\
\ \ \ \ a_{1}=a-2*d_{x}\\
\ \ \ \ e=a-d_{x}\\
\\
\ \ \ \ while\ 1\\
\ \ \ \ \ \ \ \ plot(x_{1},y_{1})\ //\ plot\ point \\
\\
\ \ \ \ \ \ \ \ if\ x_{1}==x_{2}\ then\\
\ \ \ \ \ \ \ \ \ \ \ \ break\\
\ \ \ \ \ \ \ \ endif\\
\\
\ \ \ \ \ \ \ \ if\ e\geqq 0\ then\\
\ \ \ \ \ \ \ \ \ \ \ \ y_{1}+=s_{y}\\
\ \ \ \ \ \ \ \ \ \ \ \ e+=a_{1}\\
\ \ \ \ \ \ \ \ else\\
\ \ \ \ \ \ \ \ \ \ \ e+=a\\
\ \ \ \ \ \ \ \ endif\\
\\
\ \ \ \ \ \ \ \ x_{1}+=s_{x}\\
\ \ \ \ endwhile\\
else\\
\ \ \ \ a=2*d_{x}\\
\ \ \ \ a_{1}=a-2*d_{y}\\
\ \ \ \ e=a-d_{y}\\
\\
\ \ \ \ while\ 1\\
\ \ \ \ \ \ \ \ plot(x_{1},y_{1})\ //\ point\ view \\
\\
\ \ \ \ \ \ \ \ if\ x_{1}==x_{2}\ then\\
\ \ \ \ \ \ \ \ \ \ \ \ break\\
\ \ \ \ \ \ \ \ endif\\
\\
\ \ \ \ \ \ \ \ if\ e\geqq 0\ then\\
\ \ \ \ \ \ \ \ \ \ \ \ x_{1}+=s_{x}\\
\ \ \ \ \ \ \ \ \ \ \ \ e+=a_{1}\\
\ \ \ \ \ \ \ \ else\\
\ \ \ \ \ \ \ \ \ \ \ e+=a\\
\ \ \ \ \ \ \ \ endif\\
\\
\ \ \ \ \ \ \ \ y_{1}+=s_{y}\\
\\
\ \ \ \ endwhile\\
endif\\
\\
使えるLaTeXコマンド一覧
5
<IMG SRC="../cgi-cache/20191105_175607.gif">
変換
正常に処理されました
使用できないTeXコマンドがありました
\leqq
\leqq
\geqq
\geqq
\geqq
20191105_175607
http://www.mech.tohoku-gakuin.ac.jp/rde/contents/library/ps2img/eqn2gif_online.html
Tue Nov 5 17:56:35 2019