x,y of centre region ?

Trollvottel

never aging title
Reaction score
262
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

Ultra Cool 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 Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top