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
Post a Comment