コード例 #1
0
ファイル: Vec2f.cpp プロジェクト: 222464/PGE
Vec2f Vec2f::project(const Vec2f &other) const {
	return (dot(other) / other.magnitudeSquared()) * other;
}