erebus

diff liberebus/src/object.cc @ 3:a932848de652

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 28 Apr 2014 15:44:59 +0300
parents 474a0244f57d
children e9da2916bc79
line diff
     1.1 --- a/liberebus/src/object.cc	Mon Apr 28 06:31:10 2014 +0300
     1.2 +++ b/liberebus/src/object.cc	Mon Apr 28 15:44:59 2014 +0300
     1.3 @@ -3,7 +3,6 @@
     1.4  Object::Object()
     1.5  {
     1.6  	name = "<unnamed>";
     1.7 -	inv_xform_valid = false;
     1.8  }
     1.9  
    1.10  ObjType Object::get_type() const
    1.11 @@ -21,39 +20,6 @@
    1.12  	return name.c_str();
    1.13  }
    1.14  
    1.15 -void Object::set_xform(const Matrix4x4 &mat)
    1.16 -{
    1.17 -	xform = mat;
    1.18 -	inv_xform_valid = false;
    1.19 -}
    1.20 -
    1.21 -void Object::set_xform(const Matrix4x4 &mat, const Matrix4x4 &inv_mat)
    1.22 -{
    1.23 -	xform = mat;
    1.24 -	inv_xform = inv_mat;
    1.25 -	inv_xform_valid = true;
    1.26 -}
    1.27 -
    1.28 -Matrix4x4 &Object::get_xform()
    1.29 -{
    1.30 -	inv_xform_valid = false;
    1.31 -	return xform;
    1.32 -}
    1.33 -
    1.34 -const Matrix4x4 &Object::get_xform() const
    1.35 -{
    1.36 -	return xform;
    1.37 -}
    1.38 -
    1.39 -const Matrix4x4 &Object::get_inv_xform() const
    1.40 -{
    1.41 -	if(!inv_xform_valid) {
    1.42 -		inv_xform = xform.inverse();
    1.43 -		inv_xform_valid = true;
    1.44 -	}
    1.45 -	return inv_xform;
    1.46 -}
    1.47 -
    1.48  bool Object::intersect(const Ray &ray, RayHit *hit) const
    1.49  {
    1.50  	return false;