Go to the documentation of this file.
69 #define TOOLS_VEC3F_MORE_PREC
70 #ifdef TOOLS_VEC3F_MORE_PREC
82 float this_length =
length();
83 if(this_length==0.0f)
return false;
84 float a_v_length = a_v.
length();
85 if(a_v_length==0.0f)
return false;
86 a_cos =
dot(a_v)/(this_length*a_v_length);
104 return ((d0*d0+d1*d1+d2*d2)<=a_epsil);
112 private:
static void check_instantiation() {
vec3f v(0,0,0);v.set_value(1,1,1);}
121 #define TOOLS_VEC3F_MORE_PREC
122 #ifdef TOOLS_VEC3F_MORE_PREC
134 a_tmp_1.
cross(a_tmp_2,a_nm);
139 inline void get_normal(
const vec3f& a_p0,
const vec3f& a_p1,
const vec3f& a_p2,vec3f& a_nm,
140 vec3f& a_tmp_1,vec3f& a_tmp_2) {
141 get_normal<float>(a_p0,a_p1,a_p2,a_nm,a_tmp_1,a_tmp_2,::sqrtf);
154 if(a_sv.size()!=3)
return false;