Vector.projectOnTo

Obtains the projection of this vector over other vector

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

Parameters

b Vector

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

Meta