00001 // Filename: cast_to_double.h 00002 // Created by: drose (24May00) 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 CAST_TO_DOUBLE_H 00020 #define CAST_TO_DOUBLE_H 00021 00022 #include "luse.h" 00023 00024 // The functions in this file are primarily for the benefit of a 00025 // higher-level language that can't take advantage of the LCAST macro. 00026 // These are a number of functions that convert our various math 00027 // objects between floats and doubles. 00028 00029 INLINE_LINMATH LVecBase2d cast_to_double(const LVecBase2f &source); 00030 INLINE_LINMATH LVecBase3d cast_to_double(const LVecBase3f &source); 00031 INLINE_LINMATH LVecBase4d cast_to_double(const LVecBase4f &source); 00032 INLINE_LINMATH LVector2d cast_to_double(const LVector2f &source); 00033 INLINE_LINMATH LVector3d cast_to_double(const LVector3f &source); 00034 INLINE_LINMATH LVector4d cast_to_double(const LVector4f &source); 00035 INLINE_LINMATH LPoint2d cast_to_double(const LPoint2f &source); 00036 INLINE_LINMATH LPoint3d cast_to_double(const LPoint3f &source); 00037 INLINE_LINMATH LPoint4d cast_to_double(const LPoint4f &source); 00038 INLINE_LINMATH LMatrix3d cast_to_double(const LMatrix3f &source); 00039 INLINE_LINMATH LMatrix4d cast_to_double(const LMatrix4f &source); 00040 00041 #include "cast_to_double.I" 00042 00043 #endif 00044 00045