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

Function Project

TSVector3D.h:636–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634 /// \related Vector3D
635
636 inline Vector3D Project(const Vector3D& a, const Vector3D& b)
637 {
638 return (b * Dot(a, b));
639 }
640
641 /// \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.
642 /// \related Vector3D

Callers

nothing calls this directly

Calls 1

DotFunction · 0.70

Tested by

no test coverage detected