Drag a shape to move it, drag its handles to resize it, click a dimension to type a value. Snaps to corners, midpoints, centres, edges and alignments, then to the grid. Hold Alt for no snapping. Wheel zooms, dragging the background pans. Delete removes, arrow keys nudge.

Centroid

Copy as Python (SymPy)