x,y of centre region ?

Trollvottel

never aging title
Reaction score
261
easy.


you have the MaxX and the MinX of a region. and how to calculate the average(center) of 2 values? right, add value1 to value2 and divide them by 2:

centerx = (MinX + MaxX) / 2

the same with the y-value

centery = (MinY + MaxY) / 2

tadaa
 

dannyboydude

New Member
Reaction score
33
im not a gd jasser so how do i get

max x + y
&
min x + y

of a region?


[del]Damn : my post got answered before i asked it lol[/del]

So still how do i get the min and max of x + y for a region ?

JASS:
GetRectCentreX(bank1)
GetRectCentreY(bank1)


Is that right ?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Monday!
  • Ghan Ghan:
    Monday? Speak for yourself. :p
    +2
  • The Helper The Helper:
    Happy Taco Tuesday!
    +1
  • The Helper The Helper:
    Tacos! :)
  • The Helper The Helper:
    Check out the discord for taco pictures :) You cannot put pictures in this chat
    +1
  • The Helper The Helper:
    Damn here come the bots again - 193 online but they are totally invisible to any stats - bunch of bots!'
  • C cubanismo:
    Re: Taco Tuesday, if there were some way to share edible tacos over the internet, technology would be complete.
    +2
  • The Helper The Helper:
    One can only wish!
  • tom_mai78101 tom_mai78101:
    I'm back from Taiwan
    +1
  • The Helper The Helper:
    I am reorganizing the site I know nobody will notice but I am not done quite yet but the main forums order has been changed and there is a new news category in Other News which is all the remaining headline news stuff not categorized - Headline News is just the stuff that shows on the main page now and the news archive is off the main forums page
  • The Helper The Helper:
    and the real archive lives off of headline news
  • The Helper The Helper:
    Happy Monday!
  • V-SNES V-SNES:
    Happy Saturday!
  • The Helper The Helper:
    Happy Saturday Night!
    +1

    The Helper Discord

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top