First, wait 1 second and then click 3 random points and there will be a triangle whose vertexes are clicked points. Press... 'I' to indicate the inner center...NEW 'O' to indicate the circumcenter. 'G' to indicate the center of gravity. 'H' to indicate the orthocenter. はじめに、1秒待ってから好きな3か所をクリックしてください。 すると、クリックしたところが頂点となる三角形が出来ます。 Iを押すと内心が表示されます。 Oを押すと外心が表示されます。 Gを押すと重心が表示されます Hを押すと垂心が表示されます。
重心を見つけるプロジェクトをScratchで見かけたことがあって、それで、ほかの三角形の五心を見つけるプロジェクトを作ろうと思いました。 垂直に交わる2つの1次関数のグラフの傾きをかけると-1になるって便利。 9/23 内心追加。角の2等分線定理を利用。