Panda3D
 All Classes Functions Variables Enumerations
cast_to_double.I
1 // Filename: cast_to_double.I
2 // Created by: drose (24May00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 INLINE_LINMATH LVecBase2d cast_to_double(const LVecBase2f &source) {
16  return LCAST(double, source);
17 }
18 
19 INLINE_LINMATH LVecBase3d cast_to_double(const LVecBase3f &source) {
20  return LCAST(double, source);
21 }
22 
23 INLINE_LINMATH LVecBase4d cast_to_double(const LVecBase4f &source) {
24  return LCAST(double, source);
25 }
26 
27 INLINE_LINMATH LVector2d cast_to_double(const LVector2f &source) {
28  return LCAST(double, source);
29 }
30 
31 INLINE_LINMATH LVector3d cast_to_double(const LVector3f &source) {
32  return LCAST(double, source);
33 }
34 
35 INLINE_LINMATH LVector4d cast_to_double(const LVector4f &source) {
36  return LCAST(double, source);
37 }
38 
39 INLINE_LINMATH LPoint2d cast_to_double(const LPoint2f &source) {
40  return LCAST(double, source);
41 }
42 
43 INLINE_LINMATH LPoint3d cast_to_double(const LPoint3f &source) {
44  return LCAST(double, source);
45 }
46 
47 INLINE_LINMATH LPoint4d cast_to_double(const LPoint4f &source) {
48  return LCAST(double, source);
49 }
50 
51 INLINE_LINMATH LMatrix3d cast_to_double(const LMatrix3f &source) {
52  return LCAST(double, source);
53 }
54 
55 INLINE_LINMATH LMatrix4d cast_to_double(const LMatrix4f &source) {
56  return LCAST(double, source);
57 }
58 
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
This is a four-component vector distance.
Definition: lvector4.h:427
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:4716
This is a two-component vector offset.
Definition: lvector2.h:416
This is the base class for all two-component vectors and points.
Definition: lvecBase2.h:1241
This is a four-component point in space.
Definition: lpoint4.h:443
This is the base class for all three-component vectors and points.
Definition: lvecBase4.h:1661
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
This is a two-component point in space.
Definition: lpoint2.h:411
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
This is a 3-by-3 transform matrix.
Definition: lmatrix.h:4375
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:451
This is the base class for all two-component vectors and points.
Definition: lvecBase2.h:105
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:1455
This is a four-component vector distance.
Definition: lvector4.h:91
This is the base class for all three-component vectors and points.
Definition: lvecBase4.h:111
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:746
This is a two-component vector offset.
Definition: lvector2.h:91
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:531
This is a four-component point in space.
Definition: lpoint4.h:91
This is a two-component point in space.
Definition: lpoint2.h:92
This is a 3-by-3 transform matrix.
Definition: lmatrix.h:110