Explorar el Código

core: remove unused function

Daniele Bartolini hace 6 años
padre
commit
fcad8ee61e
Se han modificado 2 ficheros con 0 adiciones y 31 borrados
  1. 0 28
      src/core/math/matrix4x4.cpp
  2. 0 3
      src/core/math/matrix4x4.h

+ 0 - 28
src/core/math/matrix4x4.cpp

@@ -7,34 +7,6 @@
 
 namespace crown
 {
-void look(Matrix4x4& m, const Vector3& pos, const Vector3& target, const Vector3& up)
-{
-	Vector3 zaxis = pos - target;
-	normalize(zaxis);
-	const Vector3 xaxis = cross(up, zaxis);
-	const Vector3 yaxis = cross(zaxis, xaxis);
-
-	m.x.x = xaxis.x;
-	m.x.y = yaxis.x;
-	m.x.z = zaxis.x;
-	m.x.w = 0.0f;
-
-	m.y.x = xaxis.y;
-	m.y.y = yaxis.y;
-	m.y.z = zaxis.y;
-	m.y.w = 0.0f;
-
-	m.z.x = xaxis.z;
-	m.z.y = yaxis.z;
-	m.z.z = zaxis.z;
-	m.z.w = 0.0f;
-
-	m.t.x = -dot(pos, xaxis);
-	m.t.y = -dot(pos, yaxis);
-	m.t.z = -dot(pos, zaxis);
-	m.t.w = 1.0f;
-}
-
 Matrix4x4& invert(Matrix4x4& m)
 {
 	const f32 xx = m.x.x;

+ 0 - 3
src/core/math/matrix4x4.h

@@ -330,9 +330,6 @@ inline Matrix4x4 get_transposed(Matrix4x4 m)
 	return m;
 }
 
-/// Sets the matrix @a m to look.
-void look(Matrix4x4& m, const Vector3& pos, const Vector3& target, const Vector3& up);
-
 /// Inverts the matrix @a m and returns the result.
 Matrix4x4& invert(Matrix4x4& m);