ScratchData LogoScratchData
Back to TheLogFather's profile

UPDATED: Test if point in triangle

THTheLogFather•Created December 27, 2016
UPDATED: Test if point in triangle
89
62
2383 views
View on Scratch

Description

== UPDATED: slightly quicker than original script (less nesting) == –––––––––––––––––––––––––––––––––––––––––––––––––––––– Just a quick demo of a script that shows how I'd go about testing if a point is within a triangle. If you compare it with the original projects then you may well be able to see how the expressions in this script here relate to what was happening in the original projects. (I think it's also [usually] a teensy bit quicker than those scripts, since it often gets out after testing only one or two of the cases, on average – of course, there could be situations where nearly all of the tris might end up getting to the final test of the three, in which case it might end up a bit slower...)

Project Details

Project ID138016290
CreatedDecember 27, 2016
Last ModifiedDecember 28, 2016
SharedDecember 27, 2016
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root