Vector.projectOnTo

Obtains the projection of two vectors

  1. Vector projectOnTo(Vector a, Vector b)
    struct Vector(T, size_t dim_)
    nothrow @nogc static pure
    projectOnTo
    ()
    (
    auto ref const Vector a
    ,
    auto ref const Vector b
    )
    if (
    __traits(isFloating, T)
    )
  2. Vector projectOnTo(Vector b)

Parameters

a Vector

Vector to project

b Vector

Vector where project vector a Returns : A Vector that it's projection of Vector a over Vector b

Meta