MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / Project

Function Project

TSVector2D.h:506–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504 /// \related Vector2D
505
506 inline Vector2D Project(const Vector2D& a, const Vector2D& b)
507 {
508 return (b * Dot(a, b));
509 }
510
511 /// \brief Returns <b>a</b>&#x202F;&minus;&#x202F;(<b>a</b>&#x202F;&sdot;&#x202F;<b>b</b>)<b>b</b>, which is the rejection of $a$ from $b$ under the assumption that the magnitude of $b$ is one.
512 /// \related Vector2D

Callers

nothing calls this directly

Calls 1

DotFunction · 0.70

Tested by

no test coverage detected