Home > @josh-brown/vector > ArrayVector > projectOnto
Returns a new vector in the direction of u
but with magnitude equal to the amount of the original vector that lies in that direction
Signature:
projectOnto(u: Vector<S>): Vector<S>;
Parameter | Type | Description |
---|---|---|
u | Vector<S> | The vector on which to project this |
Returns:
Vector<S>
This vector projected onto u