Line.getClosestToVector


getClosestToVector(pOrigin, pDirection, pPointOnStraightLine, pPointOnThisLine, pIsValidSolution)

given a straight line defined by a position and direction this function returns the closest positions on the straight line and this line

pOriginVARIANT An array of 3 real numbers, representing 3d coordinates any position on the straight line
pDirectionVARIANT An array of 3 real numbers, representing 3d coordinates direction vector of the straight line
pPointOnStraightLineVARIANT An array of 3 real numbers, representing 3d coordinates returned closest position on the straight line
pPointOnThisLineVARIANT An array of 3 real numbers, representing 3d coordinates returned closest position on this line
pIsValidSolutionVARIANTflag indicating validity of solutions +1 valie, -1 invalid
Return valuenone 

Back to Line

Back to Overview