mirror of
https://github.com/moparisthebest/Simba
synced 2024-12-03 14:12:17 -05:00
commit
7d2ef3bff6
@ -172,12 +172,12 @@ begin;
|
||||
result := (((x >= Box.x1) and(x <= Box.x2)) and ((y >= box.y1) and (y <= box.y2)));
|
||||
end;
|
||||
|
||||
function ps_PointToBox(PT1,PT2 : TPoint) : TBox; extdecl;
|
||||
function ps_PointToBox(topLeft,bottomRight: TPoint): TBox; extdecl;
|
||||
begin;
|
||||
result.x1 := PT1.x;
|
||||
result.y1 := PT1.y;
|
||||
result.x2 := PT2.x;
|
||||
result.y2 := PT2.y;
|
||||
result.x1 := topLeft.x;
|
||||
result.y1 := topLeft.y;
|
||||
result.x2 := bottomRight.x;
|
||||
result.y2 := bottomRight.y;
|
||||
end;
|
||||
|
||||
function ps_PointInBox(PT : TPoint; Box: TBox): Boolean; extdecl;
|
||||
|
@ -69,7 +69,7 @@ AddFunction(@ps_iAbs,'function iAbs(a : integer) : integer;');
|
||||
AddFunction(@ps_ArcTan2,'function ArcTan2(y,x : extended) : extended;');
|
||||
AddFunction(@ps_IntToBox,'function IntToBox(xs,ys,xe,ye : integer) : TBox;');
|
||||
AddFunction(@ps_IntInBox,'function IntInBox(x, y: Integer; Box: TBox): Boolean;');
|
||||
AddFunction(@ps_PointToBox,'function PointToBox(PT1,PT2 : TPoint): TBox;');
|
||||
AddFunction(@ps_PointToBox,'function PointToBox(topLeft,bottomRight: TPoint): TBox;');
|
||||
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;');
|
||||
|
Loading…
Reference in New Issue
Block a user