How to find the centre of a rotated vector node

Is there is any way to find the centre point of a vector node, which is rotated at any arbitrary degree.

For non rotated vector shape, the centre can easily obtained by
centre = [x+width/2, y+height/2]

When the shape gets rotated the width and height values doesn’t changes, but the value of x and y.