正方形の 2 つの対角頂点を外辺で結合しますか?

正方形の 2 つの対角頂点を外辺で結合しますか?

ここに画像の説明を入力してください

こんな感じです、下手な写真ですみません

答え1

画像を作成するには、TikZ を使用できます。scale必要なサイズにすることができます。以下のコードを参照してください。

\documentclass[border=10pt]{standalone}
\usepackage{tikz}

\begin{document}
    \begin{tikzpicture}[scale=1.0]

    \draw [thick] rectangle (1,1);
    \draw [thick] (0,1) -- (1,0);
    \draw [thick] (0,1) .. controls (1,2) and (2,1) .. (1,0);

    \end{tikzpicture}
\end{document}

ここに画像の説明を入力してください

答え2

別の TikZ の例:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \newcommand*{\OutAngle}{60}
  \newcommand*{\ArcMax}{1.2}
  \draw
    (0, 0) rectangle (1, 1)
    (0, 1) to[out=\OutAngle, in=135]
    (\ArcMax, \ArcMax) to[out=-45, in=90-\OutAngle]
    (1, 0) -- cycle
  ;
\end{tikzpicture}
\end{document}

結果

上部の出口角度はマクロで設定できます\OutAngle。円弧の原点からの最大距離はマクロで指定できます\ArcMax。これは次のように使用されます。バツそしてええ最も遠い点の座標。

答え3

Pstricks簡単に良い結果が得られます:

\documentclass[border=3pt, x11names]{standalone}

\usepackage{pst-poly, pst-eucl, pstricks-add}
\usepackage{auto-pst-pdf}

\begin{document}

\psset{unit = 2cm, dimen = m}
\begin{pspicture*}
\providecommand{\PstPolygonNode}{%
\psdots[dotstyle = o, dotsize=4pt, linecolor=LightSteelBlue3, fillstyle=solid, fillcolor=LightSteelBlue3](1;\INode)}
\PstSquare[PolyName=A]
\uput[ul](A2){A} \uput[ur](A1){B}
\uput[dr](A4){C} \uput[dl](A3){D}
\ncline[nodesep=2pt]{A2}{A4}
\pnode[0.25,0.25](A0){O}
\pstArcOAB[linecolor=LightSteelBlue3]{O}{A4}{A2}
 \end{pspicture*}

 \end{document} 

ここに画像の説明を入力してください

答え4

メタポストlualatex別の選択肢を提供します。ここではとを使用しましたが、まだ使用していない場合は代わりにluamplibplain を使用できます。mpostlualatex

ここに画像の説明を入力してください

頂点間に曲線を作成する 4 つの異なる方法を示しました。

\documentclass[border=5mm]{standalone}
\usepackage{luamplib}
\begin{document}
\begin{mplibcode}
beginfig(1);
u := 3cm;
path B; B = unitsquare scaled u;
draw B;
draw point 3 of B -- point 1 of B;
draw point 3 of B .. controls (u,2u) and (2u,u) .. point 1 of B withcolor .6 red;
draw point 3 of B .. controls point 2 of B      .. point 1 of B withcolor .6 blue;
draw point 3 of B {dir 60}                      .. point 1 of B withcolor .6 green;
draw point 3 of B {dir -20}                     .. point 1 of B dashed withdots;
endfig;
\end{mplibcode}
\end{document}

関連情報