Subversion Repositories gelsvn

Rev

Rev 5 | Rev 89 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 7
Line 38... Line 38...
38
			ArithVec4Float<float,Vec4d>(v[0],v[1],v[2],_d) {}
38
			ArithVec4Float<float,Vec4d>(v[0],v[1],v[2],_d) {}
39
 
39
 
40
		operator Vec3d() const
40
		operator Vec3d() const
41
		{
41
		{
42
			float k = 1.0/(*this)[3];
42
			float k = 1.0/(*this)[3];
43
			return Vec3f((*this)[0]*k,(*this)[1]*k,(*this)[2]*k);
43
			return Vec3d((*this)[0]*k,(*this)[1]*k,(*this)[2]*k);
44
		}
44
		}
45
	};
45
	};
46
}
46
}
47
#endif
47
#endif
48
 
48