示例#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();
		}