<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":kmath-geometry:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="project-along.html">V</a><spanclass="token operator"> : </span><ahref="-vector/index.html">Vector</a><spanclass="token operator">></span><ahref="-geometry-space/index.html">GeometrySpace</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="project-along.html">V</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="project-along.html"><spanclass="token function">projectAlong</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">vector<spanclass="token operator">: </span><ahref="project-along.html">V</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">normal<spanclass="token operator">: </span><ahref="project-along.html">V</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">base<spanclass="token operator">: </span><ahref="project-along.html">V</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="project-along.html">V</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-geometry/src/commonMain/kotlin/space/kscience/kmath/geometry/projections.kt#L26">source</a>)</span></span></div><pclass="paragraph">Project vector onto a hyperplane, which is defined by a normal and base. In 2D case it is the projection to a line, in 3d case it is the one to a plane.</p><h4class="">Parameters</h4><divclass="table"><divclass="table-row"data-filterable-current=":kmath-geometry:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-geometry:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span><span>vector</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">to project</p></div></div></div></div><divclass="table-row"data-filterable-current=":kmath-geometry:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-geometry:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span><span>normal</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">normal (perpendicular) vector to a hyper-plane to which vector should be projected</p></div></div></div></div><divclass="table-row"data-filterable-current=":kmath-geometry:dokkaHtmlPartial/commonMain"data-filterable-set=":kmath-geometry:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><u><span><span>base</span></span></u></div></span></div><div><divclass="title"><pclass="paragraph">point belonging to a hyper-plane to which vector should be projected</p></div></div></div></div></div></div></div>