螺旋

種類

コイル 等間隔で広がる
平方根で広がる 指数関数で広がる

螺旋の座標 Spiral

Spiral
回転角度を指定して螺旋での座標を取得
入力
Angle LREAL 回転角度
dx LREAL 一周で増加するX位置(コイルの場合は半径)
dz LREAL 一周で移動するZ位置
stype USINT 0=コイル, 1=等間隔 ,2=平方根 ,3=指数関数
出力
out LREAL[3] 入力回転角度での座標

【 例 】
  • コイル
半径10で1回転にZ軸に10上に伸びるコイル形状の座標を求める例です
0度から1800度までを計算すると上記の「コイル」の図形が描けます
入力
Angle 0から1800
dx 10.0
dz 10.0
stype 0
出力
out 0-1800度の座標
  • 等間隔で広がる螺旋
上記の【例 コイル】のstypeを1に変更すると「等間隔で広がる」の図形が描けます
  • 平方根で広がる螺旋
上記の【例 コイル】のstypeを2に変更すると「平方根で広がる」の図形が描けます
  • 指数関数で広がる螺旋
上記の【例 コイル】のstypeを3に変更すると「指数関数で広がる」の図形が描けます

【 計算式 】
\begin{align} \theta = \frac{\pi}{180} \times Angle \\ r= \frac{dx}{360} \\ h= \frac{dz}{360} \end{align} コイル \begin{align} x= r \times \cos\theta \\ y= r \times \sin\theta \\ z= h \times Angle \end{align} 等間隔 \begin{align} x= r\theta \times cos\theta \\ y= r\theta \times sin\theta \\ z = h \times Angle \end{align} 平方根 \begin{align} x= r \sqrt{\theta} \times cos\theta \\ y= r \sqrt{\theta} \times sin\theta \\ z = h \times Angle \end{align} 指数関数 \begin{align} a= 1.1 \\ x= r \times a^{\theta} \times cos\theta \\ y= r \times a^{\theta} \times sin\theta \\ z = h \times Angle \end{align}