00001 // Filename: compose_matrix.h 00002 // Created by: drose (27Jan99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef COMPOSE_MATRIX_H 00020 #define COMPOSE_MATRIX_H 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // 00024 // compose_matrix(), decompose_matrix() 00025 // 00026 // These two functions build and/or extract an affine matrix into 00027 // its constituent parts: scale, hpr, and translate. 00028 // 00029 // There are also two additional flavors for 3x3 matrices. These are 00030 // treated as the upper 3x3 part of a general 4x4 matrix, and so can 00031 // only represent rotations and scales. 00032 // 00033 //////////////////////////////////////////////////////////////////// 00034 00035 #include <pandabase.h> 00036 #include <math.h> 00037 #include "lmatrix.h" 00038 #include "lvector3.h" 00039 #include "lvector2.h" 00040 #include "lpoint3.h" 00041 #include "lpoint2.h" 00042 #include "lmat_ops.h" 00043 #include "lvec2_ops.h" 00044 #include "lvec3_ops.h" 00045 00046 #include "fltnames.h" 00047 #include "compose_matrix_src.h" 00048 00049 #include "dblnames.h" 00050 #include "compose_matrix_src.h" 00051 00052 #endif 00053