Skip to content

Instantly share code, notes, and snippets.

@OthmanT
OthmanT / IsPointInArc.pde
Last active June 26, 2020 02:00
How to check if a point is in an arc.
Arc arc;
void setup() {
size(500, 500);
arc = new Arc(width/2, height/2, -PI, PI/4, 200);
}
void draw() {
background(51);
arc.rotateBy(0.03);