vec3ProjectOnLine(p: Vec3, lineStart: Vec3, lineEnd: Vec3): number
Project point p onto the line defined by lineStart → lineEnd.
Returns the parameter t such that the projected point = lerp(lineStart, lineEnd, t).
t is NOT clamped — values outside [0,1] are valid (point projects beyond segment).
Project point
ponto the line defined bylineStart→lineEnd. Returns the parametertsuch that the projected point = lerp(lineStart, lineEnd, t).tis NOT clamped — values outside [0,1] are valid (point projects beyond segment).