Panda3D
 All Classes Functions Variables Enumerations
cast_to_float.I
1 // Filename: cast_to_float.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 LVecBase2f cast_to_float(const LVecBase2d &source) {
16  return LCAST(float, source);
17 }
18 
19 INLINE_LINMATH LVecBase3f cast_to_float(const LVecBase3d &source) {
20  return LCAST(float, source);
21 }
22 
23 INLINE_LINMATH LVecBase4f cast_to_float(const LVecBase4d &source) {
24  return LCAST(float, source);
25 }
26 
27 INLINE_LINMATH LVector2f cast_to_float(const LVector2d &source) {
28  return LCAST(float, source);
29 }
30 
31 INLINE_LINMATH LVector3f cast_to_float(const LVector3d &source) {
32  return LCAST(float, source);
33 }
34 
35 INLINE_LINMATH LVector4f cast_to_float(const LVector4d &source) {
36  return LCAST(float, source);
37 }
38 
39 INLINE_LINMATH LPoint2f cast_to_float(const LPoint2d &source) {
40  return LCAST(float, source);
41 }
42 
43 INLINE_LINMATH LPoint3f cast_to_float(const LPoint3d &source) {
44  return LCAST(float, source);
45 }
46 
47 INLINE_LINMATH LPoint4f cast_to_float(const LPoint4d &source) {
48  return LCAST(float, source);
49 }
50 
51 INLINE_LINMATH LMatrix3f cast_to_float(const LMatrix3d &source) {
52  return LCAST(float, source);
53 }
54 
55 INLINE_LINMATH LMatrix4f cast_to_float(const LMatrix4d &source) {
56  return LCAST(float, 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