Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 778 Bytes

vector.arrayvector.projectonto.md

File metadata and controls

26 lines (15 loc) · 778 Bytes

Home > @josh-brown/vector > ArrayVector > projectOnto

ArrayVector.projectOnto() method

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>;

Parameters

Parameter Type Description
u Vector<S> The vector on which to project this

Returns:

Vector<S>

This vector projected onto u