Skip to content

Latest commit

 

History

History
56 lines (27 loc) · 927 Bytes

File metadata and controls

56 lines (27 loc) · 927 Bytes

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

FloatVector.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<number>): Vector<number>;

Parameters

Parameter

Type

Description

u

Vector<number>

The vector on which to project this

Returns:

Vector<number>

This vector projected onto u