mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
*** empty log message ***
This commit is contained in:
parent
da33fdddf2
commit
ce3cbe2c3e
@ -50,6 +50,7 @@
|
|||||||
#define TARGET test_math
|
#define TARGET test_math
|
||||||
#define LOCAL_LIBS \
|
#define LOCAL_LIBS \
|
||||||
linmath
|
linmath
|
||||||
|
#define OTHER_LIBS $[OTHER_LIBS] pystub
|
||||||
|
|
||||||
#define SOURCES \
|
#define SOURCES \
|
||||||
test_math.cxx
|
test_math.cxx
|
||||||
|
@ -10,7 +10,18 @@
|
|||||||
#include <notify.h>
|
#include <notify.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
void test() {
|
||||||
|
LMatrix4f x = LMatrix4f::ident_mat();
|
||||||
|
LMatrix4f y = LMatrix4f::ident_mat();
|
||||||
|
|
||||||
|
LMatrix4f z = x * y;
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
test();
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
LOrientationf orientation; // = LQuaternionf::ident_quat();
|
LOrientationf orientation; // = LQuaternionf::ident_quat();
|
||||||
orientation.set(LMatrix4f::rotate_mat(-45.0f, LVector3f(0, 0, 1)));
|
orientation.set(LMatrix4f::rotate_mat(-45.0f, LVector3f(0, 0, 1)));
|
||||||
LRotationf rotation(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 << "Rotation => Matrix: " << m << endl;
|
||||||
cout << "Point: " << p << endl;
|
cout << "Point: " << p << endl;
|
||||||
cout << "Matrix * Point: " << m * p << endl;
|
cout << "Matrix * Point: " << m * p << endl;
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
LMatrix4d x = LMatrix4d::ident_mat();
|
LMatrix4d x = LMatrix4d::ident_mat();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user