Math Functions - PointOnAngle
Text:
API Call:Calculates a new point given by p1 a given Distance and Angle then returns the result point in p2.
Declaration:
PointOnAngle(p1x, p1y, Angle, Distance: Double; var p2x: double; var p2y: double);
Source Code
Delphi
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
var
p2x, p2y: double;
begin
PointOnAngle(10, 10, 45, 20, p2x, p2y);
end; |