mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-25 16:01:48 -05:00
Fix hypot.
This commit is contained in:
parent
e5392de4f1
commit
5556583ce0
Units/MMLAddon/PSInc
@ -77,11 +77,6 @@ begin
|
||||
Result := Round(Sqrt(Sqr(x2-x1) + Sqr(y2-y1)));
|
||||
end;
|
||||
|
||||
function ps_Hypot(X, Y: Extended): Extended;extdecl;
|
||||
begin
|
||||
result := hypot(x,y);
|
||||
end;
|
||||
|
||||
function ps_RandomRange(const aFrom, aTo: Integer): Integer; extdecl;
|
||||
begin
|
||||
Result:=Random(Abs(aFrom-aTo))+Min(aTo,AFrom);
|
||||
|
@ -69,7 +69,6 @@ AddFunction(@ps_PointInBox,'function PointInBox(PT : TPoint; Box: TBox): Boolean
|
||||
AddFunction(@ps_sqr,'function Sqr(e : extended) : extended;');
|
||||
AddFunction(@ps_point,'function Point(x,y:integer) : TPoint;');
|
||||
AddFunction(@ps_Distance,'function Distance(xs,ys,xe,ye : integer) : integer;');
|
||||
AddFunction(@ps_hypot,'function Hypot(X, Y: Extended): Extended;');
|
||||
AddFunction(@ps_RandomRange,'function RandomRange(aFrom,aTo: Integer): Integer;');
|
||||
AddFunction(@ps_incex,'procedure IncEx(var x : integer; increase : integer);');
|
||||
AddFunction(@ps_DecEx,'procedure DecEx(var x : integer; Decrease : integer);');
|
||||
@ -92,7 +91,7 @@ AddFunction(@ps_ArcTan, 'function ArcTan(e: extended): extended;');
|
||||
AddFunction(@ps_Cotan, 'function Cotan(e: extended): extended;');
|
||||
AddFunction(@ps_Secant, 'function Secant(e: extended): extended;');
|
||||
AddFunction(@ps_Cosecant, 'function Cosecant(e: extended): extended;');
|
||||
AddFunction(@ps_Hypot, 'function Hypot(e: extended): extended;');
|
||||
//AddFunction(@ps_Hypot, 'function Hypot(e: extended): extended;');
|
||||
AddFunction(@ps_Cot, 'function Cot(e: extended): extended;');
|
||||
AddFunction(@ps_Sec, 'function Sec(e: extended): extended;');
|
||||
AddFunction(@ps_Csc, 'function Csc(e: extended): extended;');
|
||||
|
Loading…
x
Reference in New Issue
Block a user