geometry - Check if a point is on a 3d line? -


i know how check if point on 2d line or not, i'd in 3d. ideas?

        // slope point 1 point 3         var p13:number = (math.atan2 (end.x - start.x, end.y - start.y)) * todegrees;          // slope point 1 point 2 -- matches?         var p12:number = (math.atan2 (point.x - start.x, point.y - start.y)) * todegrees;          return math.round(p12) == math.round(p13); 

normalize vectors. check if normals match.

find greatest value, divide of other values value vector normal.

any point on line should have same vector normal.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -