Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Math Functions - PointOnAngle

Calculates a new point given by p1 a given Distance and Angle then returns the result point in p2.

...

PointOnAngle(p1x, p1y, Angle, Distance: Double; var p2x: double; var p2y: double);

Source Code

...

Delphi

Code Block
languagedelphi
titleScripting
linenumberstrue
collapsetrue
var
  p2x, p2y: double;

begin
  PointOnAngle(10, 10, 45, 20, p2x, p2y);
end;

...