I have a custom shape, which I made using:
beginShape(LINES);
vertex(190, 231);
vertex(203, 143);
vertex(203, 143);
vertex(298, 153);
vertex(298, 153);
vertex(365, 231);
vertex(365, 231);
vertex(365, 413);
vertex(365, 413);
vertex(251, 413);
vertex(251, 413);
vertex(190, 231);
endShape();
I want to check if this ellipse is inside the perimeter of this custom shape. I tried to search online and the docs but couldn’t find anything. Also, I am new to P5.js
Any help would be greatly appreciated.
Thanks.