project#
- static vectorious.project(x, y)#
Projects the y onto x using the projection formula (y * (x * y / y * y)).
Examples:
import { project } from 'vectorious/core/project'; project([1, 2, 3], [4, 5, 6]); // => array([1.6623376607894897, 2.0779221057891846, 2.49350643157959])