fractionOfProjectionToVector Method
Return fractional length of the projection of the instance onto the target vector.
fractionOfProjectionToVector(target: Vector2d, defaultFraction?: number): number
@returns the signed length of the projection divided by the length of target
Parameter | Type | Description |
---|---|---|
target | Vector2d | the target vector |
defaultFraction | number | the returned value in case the magnitude of target is too small |
Returns - number
the signed length of the projection divided by the length of target
Defined in
- geometry3d/Point2dVector2d.ts Line 468
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.