Panda3D
cast_to_double.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file cast_to_double.h
10  * @author drose
11  * @date 2000-05-24
12  */
13 
14 #ifndef CAST_TO_DOUBLE_H
15 #define CAST_TO_DOUBLE_H
16 
17 #include "luse.h"
18 
19 // The functions in this file are primarily for the benefit of a higher-level
20 // language that can't take advantage of the LCAST macro. These are a number
21 // of functions that convert our various math objects between floats and
22 // doubles.
23 
24 INLINE_LINMATH LVecBase2d cast_to_double(const LVecBase2f &source);
25 INLINE_LINMATH LVecBase3d cast_to_double(const LVecBase3f &source);
26 INLINE_LINMATH LVecBase4d cast_to_double(const LVecBase4f &source);
27 INLINE_LINMATH LVector2d cast_to_double(const LVector2f &source);
28 INLINE_LINMATH LVector3d cast_to_double(const LVector3f &source);
29 INLINE_LINMATH LVector4d cast_to_double(const LVector4f &source);
30 INLINE_LINMATH LPoint2d cast_to_double(const LPoint2f &source);
31 INLINE_LINMATH LPoint3d cast_to_double(const LPoint3f &source);
32 INLINE_LINMATH LPoint4d cast_to_double(const LPoint4f &source);
33 INLINE_LINMATH LMatrix3d cast_to_double(const LMatrix3f &source);
34 INLINE_LINMATH LMatrix4d cast_to_double(const LMatrix4f &source);
35 
36 #include "cast_to_double.I"
37 
38 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.