我正在绘制一张图片,展示如何为自然音乐音阶定位片段。我的三角学课程早就被遗忘了,所以我很抱歉这将是一个非常愚蠢的问题。
考虑以下 tikz 图片。我需要重新放置段 D,使其测量值是段 ut-C 的测量值的 8/9。现在我只是将它放置在 ut 和 ut' 之间 8/9 的随机距离处。我应该使用什么数学函数(sen,cos ...???)以及如何为 tikz 写下来?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[scale=2]
\coordinate (o) at (0,0);
\coordinate [label=below:ut] (ut) at (2,0);
\coordinate [label=below:ut'] (ut') at (4,0);
\coordinate [label=above:C] (C) at (2, 2.4);
\coordinate [label=above:c] (c) at (4, 1.2);
\coordinate (O) at ($ (c)!2!(C) $);
\draw (ut) -- (ut');
\draw (ut) -- (C);
\draw (C) -- (c);
\draw (ut') -- (c);
\coordinate [label=below:re] (re) at ($ (ut)!8.0/9!(ut') $);
\coordinate [label=above:D] (D) at ($ (C)!8.0/9!(c) $);
\draw (re) --(D);
\node [fill=black, inner sep=1pt] (c') at ($ (ut)!1.0/6!(C) $) {};
\node [fill=black, inner sep=1pt] (c') at ($ (ut)!2.0/6!(C) $) {};
\node [fill=black, inner sep=1pt] (c') at ($ (ut)!3.0/6!(C) $) {};
\node [fill=black, inner sep=1pt] (c') at ($ (ut)!4.0/6!(C) $) {};
\node [fill=black, inner sep=1pt] (c') at ($ (ut)!5.0/6!(C) $) {};
\node [fill=black, inner sep=1pt] (c') at ($ (ut')!1.0/3!(c) $) {};
\node [fill=black, inner sep=1pt] (c') at ($ (ut')!2.0/3!(c) $) {};
\draw (ut') -- (c);
\end{tikzpicture}
\end{document}
谢谢你,A