Naimisha Badri Rectangle

I am confused on the constructors and the bottomLeft and topRight
set origin = bottomLeft
set width = topRight.getX() - origin.getX()
set height using same but Y values