Panda3D
|
00001 // Filename: cast_to_double.I 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 INLINE_LINMATH LVecBase2d cast_to_double(const LVecBase2f &source) { 00016 return LCAST(double, source); 00017 } 00018 00019 INLINE_LINMATH LVecBase3d cast_to_double(const LVecBase3f &source) { 00020 return LCAST(double, source); 00021 } 00022 00023 INLINE_LINMATH LVecBase4d cast_to_double(const LVecBase4f &source) { 00024 return LCAST(double, source); 00025 } 00026 00027 INLINE_LINMATH LVector2d cast_to_double(const LVector2f &source) { 00028 return LCAST(double, source); 00029 } 00030 00031 INLINE_LINMATH LVector3d cast_to_double(const LVector3f &source) { 00032 return LCAST(double, source); 00033 } 00034 00035 INLINE_LINMATH LVector4d cast_to_double(const LVector4f &source) { 00036 return LCAST(double, source); 00037 } 00038 00039 INLINE_LINMATH LPoint2d cast_to_double(const LPoint2f &source) { 00040 return LCAST(double, source); 00041 } 00042 00043 INLINE_LINMATH LPoint3d cast_to_double(const LPoint3f &source) { 00044 return LCAST(double, source); 00045 } 00046 00047 INLINE_LINMATH LPoint4d cast_to_double(const LPoint4f &source) { 00048 return LCAST(double, source); 00049 } 00050 00051 INLINE_LINMATH LMatrix3d cast_to_double(const LMatrix3f &source) { 00052 return LCAST(double, source); 00053 } 00054 00055 INLINE_LINMATH LMatrix4d cast_to_double(const LMatrix4f &source) { 00056 return LCAST(double, source); 00057 } 00058