Corners x,y

Hi all , anyone know a formula to get the corners cordinates of a rectagle knowing the x center,y center ,w ,h ,angle ?

corner_x_y.v4p (9.6 kB)


*Points2Vector (2d)
*Vector2Points (2d)

are useful nodes for the solution of your problem ?!?

hi kalle i tried them without success thx

i would use a *** (3D)** and multiply a transformation with the corners:

  • -0.5, -0.5, 0
  • -0.5, 0.5, 0
  • 0.5, 0.5, 0
  • 0.5, -0.5, 0

that is a object space to world space transformation.

thx gregsn , this way works great but the problem is when the size changes + rotaing the corners swap and dont remain in it,s original corner position , how could this be avoided or solved? (32.3 kB)

this is a problem of the colortracker.
it is just not so precise…

corners.v4p (18.5 kB)

ok thank you