fractionOfProjectionToVectorXYXY MethodStatic
Return fractional length of the projection of the first vector ("the space vector") ux,uy to the vector vx,vy ("the direction vector")
fractionOfProjectionToVectorXYXY(ux: number, uy: number, vx: number, vy: number, defaultFraction: number = 0): number
@returns the signed length of the projection divided by the length of the direction vector
Returns - number
the signed length of the projection divided by the length of the direction vector
Defined in
- Geometry.ts Line 941
Last Updated: 19 March, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.