Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
あなたの助けが必要です、
ArrayList で 2 つの画面座標 ( start(x,y) / end(x,y) ) の間の線のすべての点 (x,y) を取得するにはどうすればよいですか?
中点式を使用します。Start(x1,y1) と End(x2,y2) を 2 点とすると、midpoint((x1+x2)/2,(y1,y2)/2) の中点 b/w start と end を次の式を使用して取得できます。開始と終了の両方ですべてのポイントを獲得するまで。
これが希望になることを願っています。