projectAlong

fun <V : Vector> GeometrySpace<V>.projectAlong(vector: V, normal: V, base: V): V

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.

Parameters

vector

to project

normal

normal (perpendicular) vector to a hyper-plane to which vector should be projected

base

point belonging to a hyper-plane to which vector should be projected

Sources

Link copied to clipboard