2024.02.19
図形
円(circle)、楕円(ellipse)
円(circle)
円(circle)は、中心点から同じ距離にある点全体のことです。
点全体を表示すると以下のように丸い形になります。

以下の図は、円の中心を表したものです。



楕円(ellipse)
楕円(ellipse)は、円を特定方向に拡大・縮小した図形です。


楕円上の座標(x,y)は、長半径aと短半径bを使って以下の式で表せます。(a>0、b>0)

関連コンテンツ
円の中に含まれる格子の数と格子の外の数から円周率πを計算する方法を紹介しています。図とJavaのソースコードでくわしく説明していますので、興味のある方は記事をご覧ください。
2020.12.22
円の中心座標(0,0)、半径rで表される円の円周上のランダムな座標を求めるJavaのソースコードを紹介しています。ラジアンを乱数で発生して座標を計算しています。
2019.09.27
円の中心座標(0,0)、半径rで表される円の円周上のランダムな座標を求めるJavaのソースコードを紹介しています。度単位の角度の乱数をラジアンに変換して座標を計算しています。
2019.09.27