Hey everyone,
Well recently I decided to make a matrix editor in dbpro (just as a way of learning more about the matrix commands). So far I've been successful in making a mouse cursor object that you can move along the matrix, and raise/lower single matrix points by click near the point you want to edit. Now my problem is that I want to make it so that I can move more than one point at a time. Looking around at the other matrix editors I found that Magic World has a really nice way of doing it (ie: making a circle and checking to see whether or not the co-ordinates of the points on the matrix fall inside the radius of the circle).
My problem is that the only way I can think of doing this is by using a FOR / NEXT loop and going through every point of a matrix to see if it falls inside the radius. While this works fine, on a larger matrix (with more points) it would definitely start to slow down. So here is the crux of the issue, is there a way of localising (or refining) the loop in any way so that it doesn't have to go through all the matrix points?
I hope I've explained the problem with enough detail, and thanks in advance to any advice posted (it will be much appreciated).
Cheer,
Sina.
"Maybe if you ain't so good, I ain't so bad."--Tony Manero to Stephanie (Karen Lynn Gorney)