예제 #1
0
Vector4 Vector4::ProjectionOnto( const Vector4& v ) const
{
	return ( Dot(v) / v.LengthSquared() ) * v;	// I assume this is still valid for 4D vectors
}
예제 #2
0
파일: r2-vector-4.cpp 프로젝트: Raze/r2tk
		bool operator>=(const Vector4& p_lhs, const Vector4& p_rhs) {
			return p_lhs.LengthSquared() >= p_rhs.LengthSquared();
		}