Nexz
2013-01-13 14:58:19
I need to remove points from a TPA that are outside of a box.
I made something like this:
It works but it's slow. Is there a faster way?
Ty.
I made something like this:
for II := 0 to High(TPA1) do
if (InRange(TPA1[II].X, Box1.X1, Box1.X2) and InRange(TPA1[II].Y, Box1.Y1, Box1.Y2)) then
TPA4 := CombineTPA(TPA4, [TPA1[II]]);
It works but it's slow. Is there a faster way?
Ty.