38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
/**
|
|
* PANDA 3D SOFTWARE
|
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
*
|
|
* All use of this software is subject to the terms of the revised BSD
|
|
* license. You should have received a copy of this license along
|
|
* with this source code in a file named "LICENSE."
|
|
*
|
|
* @file cast_to_float.h
|
|
* @author drose
|
|
* @date 2000-05-24
|
|
*/
|
|
|
|
#ifndef CAST_TO_FLOAT_H
|
|
#define CAST_TO_FLOAT_H
|
|
|
|
#include "luse.h"
|
|
|
|
// The functions in this file are primarily for the benefit of a higher-level
|
|
// language that can't take advantage of the LCAST macro. These are a number
|
|
// of functions that convert our various math objects between floats and
|
|
// doubles.
|
|
|
|
INLINE_LINMATH LVecBase2f cast_to_float(const LVecBase2d &source);
|
|
INLINE_LINMATH LVecBase3f cast_to_float(const LVecBase3d &source);
|
|
INLINE_LINMATH LVecBase4f cast_to_float(const LVecBase4d &source);
|
|
INLINE_LINMATH LVector2f cast_to_float(const LVector2d &source);
|
|
INLINE_LINMATH LVector3f cast_to_float(const LVector3d &source);
|
|
INLINE_LINMATH LVector4f cast_to_float(const LVector4d &source);
|
|
INLINE_LINMATH LPoint2f cast_to_float(const LPoint2d &source);
|
|
INLINE_LINMATH LPoint3f cast_to_float(const LPoint3d &source);
|
|
INLINE_LINMATH LPoint4f cast_to_float(const LPoint4d &source);
|
|
INLINE_LINMATH LMatrix3f cast_to_float(const LMatrix3d &source);
|
|
INLINE_LINMATH LMatrix4f cast_to_float(const LMatrix4d &source);
|
|
|
|
#include "cast_to_float.I"
|
|
|
|
#endif
|