ScratchData LogoScratchData
Back to _youtubeN1's profile

Testing if Mouse is in Triangle v0.2

_Y_youtubeN1•Created July 11, 2015
Testing if Mouse is in Triangle v0.2
8
4
57 views
View on Scratch

Instructions

Drag the dots around.

Description

So the purpose for this is that it can detect if a quadrilateral is concave (meaning that one vertex is more than 180 degrees), then it means that a point is inside a big triangle made only by three of the points of the quadrilateral. In a later project I will explain it more visually... Oh, and I use three inequalities for this project, and for the mouse, if it is in a place that all three inequalities are satisfied, then it is in the triangle. 7/22/15: Corrected a bug for vertical lines in the triangle

Project Details

Project ID70090902
CreatedJuly 11, 2015
Last ModifiedJuly 23, 2015
SharedJuly 18, 2015
Visibilityvisible
CommentsAllowed