Panda3D
cast_to_float.h
1 // Filename: cast_to_float.h
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 #ifndef CAST_TO_FLOAT_H
16 #define CAST_TO_FLOAT_H
17 
18 #include "luse.h"
19 
20 // The functions in this file are primarily for the benefit of a
21 // higher-level language that can't take advantage of the LCAST macro.
22 // These are a number of functions that convert our various math
23 // objects between floats and doubles.
24 
25 INLINE_LINMATH LVecBase2f cast_to_float(const LVecBase2d &source);
26 INLINE_LINMATH LVecBase3f cast_to_float(const LVecBase3d &source);
27 INLINE_LINMATH LVecBase4f cast_to_float(const LVecBase4d &source);
28 INLINE_LINMATH LVector2f cast_to_float(const LVector2d &source);
29 INLINE_LINMATH LVector3f cast_to_float(const LVector3d &source);
30 INLINE_LINMATH LVector4f cast_to_float(const LVector4d &source);
31 INLINE_LINMATH LPoint2f cast_to_float(const LPoint2d &source);
32 INLINE_LINMATH LPoint3f cast_to_float(const LPoint3d &source);
33 INLINE_LINMATH LPoint4f cast_to_float(const LPoint4d &source);
34 INLINE_LINMATH LMatrix3f cast_to_float(const LMatrix3d &source);
35 INLINE_LINMATH LMatrix4f cast_to_float(const LMatrix4d &source);
36 
37 #include "cast_to_float.I"
38 
39 #endif
40 
41 
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:441
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:4716
This is a two-component vector offset.
Definition: lvector2.h:429
This is the base class for all two-component vectors and points.
Definition: lvecBase2.h:1257
This is a four-component point in space.
Definition: lpoint4.h:457
This is the base class for all three-component vectors and points.
Definition: lvecBase4.h:1677
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:424
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:1471
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:760
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:544
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