Panda3D
|
00001 // Filename: cast_to_float.h 00002 // Created by: drose (24May00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef CAST_TO_FLOAT_H 00016 #define CAST_TO_FLOAT_H 00017 00018 #include "luse.h" 00019 00020 // The functions in this file are primarily for the benefit of a 00021 // higher-level language that can't take advantage of the LCAST macro. 00022 // These are a number of functions that convert our various math 00023 // objects between floats and doubles. 00024 00025 INLINE_LINMATH LVecBase2f cast_to_float(const LVecBase2d &source); 00026 INLINE_LINMATH LVecBase3f cast_to_float(const LVecBase3d &source); 00027 INLINE_LINMATH LVecBase4f cast_to_float(const LVecBase4d &source); 00028 INLINE_LINMATH LVector2f cast_to_float(const LVector2d &source); 00029 INLINE_LINMATH LVector3f cast_to_float(const LVector3d &source); 00030 INLINE_LINMATH LVector4f cast_to_float(const LVector4d &source); 00031 INLINE_LINMATH LPoint2f cast_to_float(const LPoint2d &source); 00032 INLINE_LINMATH LPoint3f cast_to_float(const LPoint3d &source); 00033 INLINE_LINMATH LPoint4f cast_to_float(const LPoint4d &source); 00034 INLINE_LINMATH LMatrix3f cast_to_float(const LMatrix3d &source); 00035 INLINE_LINMATH LMatrix4f cast_to_float(const LMatrix4d &source); 00036 00037 #include "cast_to_float.I" 00038 00039 #endif 00040 00041