Rob*_*cks 5 3d geometry angle points
我知道如何检查点是否在2d线上,但我想在3D中执行此操作.有任何想法吗?
// 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);
Run Code Online (Sandbox Code Playgroud)