Panda3D
Loading...
Searching...
No Matches
cast_to_double.I
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.I
10 * @author drose
11 * @date 2000-05-24
12 */
13
14INLINE_LINMATH LVecBase2d cast_to_double(const LVecBase2f &source) {
15 return LCAST(double, source);
16}
17
18INLINE_LINMATH LVecBase3d cast_to_double(const LVecBase3f &source) {
19 return LCAST(double, source);
20}
21
22INLINE_LINMATH LVecBase4d cast_to_double(const LVecBase4f &source) {
23 return LCAST(double, source);
24}
25
26INLINE_LINMATH LVector2d cast_to_double(const LVector2f &source) {
27 return LCAST(double, source);
28}
29
30INLINE_LINMATH LVector3d cast_to_double(const LVector3f &source) {
31 return LCAST(double, source);
32}
33
34INLINE_LINMATH LVector4d cast_to_double(const LVector4f &source) {
35 return LCAST(double, source);
36}
37
38INLINE_LINMATH LPoint2d cast_to_double(const LPoint2f &source) {
39 return LCAST(double, source);
40}
41
42INLINE_LINMATH LPoint3d cast_to_double(const LPoint3f &source) {
43 return LCAST(double, source);
44}
45
46INLINE_LINMATH LPoint4d cast_to_double(const LPoint4f &source) {
47 return LCAST(double, source);
48}
49
50INLINE_LINMATH LMatrix3d cast_to_double(const LMatrix3f &source) {
51 return LCAST(double, source);
52}
53
54INLINE_LINMATH LMatrix4d cast_to_double(const LMatrix4f &source) {
55 return LCAST(double, source);
56}