HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Min Y, Min X, Max Y, Max X of a point...

01-27-2007, 01:52 AM#1
Mythic Fr0st
I need to do the same thing i've been doing with rects

but with points, I need to get the Min Y, Min X, Max Y, Max X of a point?

So I can loop through it? is it possible?
01-27-2007, 03:57 AM#2
The_AwaKening
Your question isn't making sense to me. A point is one X and one Y, so there is no min and max. You can get the X, Y of a location, unit, etc. Not sure what you're looking for.

GetLocationX(loc), GetLocationY(loc)
GetUnitX(u), GetUnitY(u)
01-27-2007, 03:59 AM#3
Mythic Fr0st
in GUI, real down the bottom

Min Y, Min, X

I've been using it to loop through an entire rect

E.G

set Min Y = GetRectMinY(rct)
set Min X = GetRectMinX(rct)

then doing the same for max, then it loops through the entire area inside the rect

I've found a solution though thanks