Getting the x1,y1,x2,y2 co-ordinates of an element

Getting the x1,y1,x2,y2 co-ordinates of an element

Is there a core function that can return  the x1,y1,x2,y2 co-ordinates of an element, it seems that this would be a common thing to do.

Thanks

Justin