From ce3cbe2c3e5a6813cbddfec5a7bbed687547a994 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 19 Jan 2001 23:54:27 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/linmath/Sources.pp | 1 + panda/src/linmath/test_math.cxx | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/panda/src/linmath/Sources.pp b/panda/src/linmath/Sources.pp index e4526cac76..08a7895980 100644 --- a/panda/src/linmath/Sources.pp +++ b/panda/src/linmath/Sources.pp @@ -50,6 +50,7 @@ #define TARGET test_math #define LOCAL_LIBS \ linmath + #define OTHER_LIBS $[OTHER_LIBS] pystub #define SOURCES \ test_math.cxx diff --git a/panda/src/linmath/test_math.cxx b/panda/src/linmath/test_math.cxx index 52ad6d6234..2fd7c4aa83 100644 --- a/panda/src/linmath/test_math.cxx +++ b/panda/src/linmath/test_math.cxx @@ -10,7 +10,18 @@ #include #include +void test() { + LMatrix4f x = LMatrix4f::ident_mat(); + LMatrix4f y = LMatrix4f::ident_mat(); + + LMatrix4f z = x * y; +} + int main(int argc, char *argv[]) { + test(); + + /* + LOrientationf orientation; // = LQuaternionf::ident_quat(); orientation.set(LMatrix4f::rotate_mat(-45.0f, LVector3f(0, 0, 1))); LRotationf rotation(LMatrix4f::rotate_mat(45.0f, LVector3f(0, 0, 1))); @@ -31,6 +42,7 @@ int main(int argc, char *argv[]) { cout << "Rotation => Matrix: " << m << endl; cout << "Point: " << p << endl; cout << "Matrix * Point: " << m * p << endl; + */ /* LMatrix4d x = LMatrix4d::ident_mat();