block by HarryStevens 5fe49df19892c04dfb9883c217571409

Rotate A Point About An Origin

Full Screen

Rotate a point about an origin by a specified angle. Read more on Wikipedia and StackExchange.

The red point represents the rotation of the blue point around the black point by 45 degrees. By dragging, you can adjust the position of the blue point and the black point, and the angle of rotation of the red point.

This block uses Geometric.js for all geometric functions, specifically lineAngle, lineLength, lineMidpoint, pointRotate and pointTranslate.

index.html