fractionOfProjectionToVector Method

Return fractional length of the projection of the instance onto the target vector.

fractionOfProjectionToVector(target: Vector3d, defaultFraction: number0): number

@returns the signed length of the projection divided by the length of target

Parameter Type Description
target Vector3d 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

Last Updated: 21 November, 2024