Пример #1
0
Vec3f Vec3f::Project(const Vec3f &other) const
{
	return (Dot(other) / other.MagnitudeSquared()) * other;
}
Пример #2
0
Vec3f Vec3f::project(const Vec3f& other) const {
    return (dot(other) / other.MagnitudeSquared() * other);
}