-
Intersection of a line!?
I'm trying to determine how to calculate if when the user draws a line and has intersected that line that they were drawing. How would I go about that!? Thanks for the help in advance.
Corey
-
Qwaizang:syntax_entity_
It depends on whether you are drawing straight lines or curved lines.
Obviously straight lines are easier to check. The only way (off the top of my head) to check curved lines is to program custom drawing functions that can also be used as checking functions.
If all you want to do is check when the mouse pointer is resting on the line that was drawn, that's rather easy. If you want to cause behavioral changes in the drawing function (ie, to preserve the correct outline of a fill) that's a bit tougher.
What are you trying to do exactly?
+Q__
-
I'm having the user draw an object, and if it intersects i want to be like "wow that doesn't look to good" to appear in a dynamic txt box, or some comment... I tried the hitTest method but that didn't work to well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|