Beispiel #1
0
double vec4::operator<=(const vec4& v)
{
	return this->length()<=v.length();
}
Beispiel #2
0
double vec4::operator>(const vec4& v)
{
	return this->length()>v.length();
}
Beispiel #3
0
 static vec4 normalize (const vec4& input)
 {
     float length = input.length();
     return (length > 0.0f ? input / length : input);
 }