fractionOfProjectionToVector Method
Return fractional projection of target vector onto this
- It's returning the signed projection magnitude divided by the target magnitude. In other words, it's returning the length of the projection as a fraction of the target magnitude.
 
fractionOfProjectionToVector(target: Vector2d, defaultFraction?: number): number
| Parameter | Type | Description | 
|---|---|---|
| target | Vector2d | the target vector | 
| defaultFraction | number | the returned value in case magnitude square of target vector is very small | 
Returns - number
Defined in
- geometry3d/Point2dVector2d.ts Line 457
 
Last Updated: 20 June, 2023