I know how to check if a point is on the 2nd line or not, but I would like to do it in 3D. Any ideas?
// slope from point 1 to point 3 var p13:Number = (Math.atan2 (end.x - start.x, end.y - start.y)) * toDegrees; // slope from point 1 to point 2 -- matches? var p12:Number = (Math.atan2 (point.x - start.x, point.y - start.y)) * toDegrees; return Math.round(p12) == Math.round(p13);
source share