cast_to_float.I 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Filename: cast_to_float.I
  2. // Created by: drose (24May00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. INLINE_LINMATH LVecBase2f cast_to_float(const LVecBase2d &source) {
  19. return LCAST(float, source);
  20. }
  21. INLINE_LINMATH LVecBase3f cast_to_float(const LVecBase3d &source) {
  22. return LCAST(float, source);
  23. }
  24. INLINE_LINMATH LVecBase4f cast_to_float(const LVecBase4d &source) {
  25. return LCAST(float, source);
  26. }
  27. INLINE_LINMATH LVector2f cast_to_float(const LVector2d &source) {
  28. return LCAST(float, source);
  29. }
  30. INLINE_LINMATH LVector3f cast_to_float(const LVector3d &source) {
  31. return LCAST(float, source);
  32. }
  33. INLINE_LINMATH LVector4f cast_to_float(const LVector4d &source) {
  34. return LCAST(float, source);
  35. }
  36. INLINE_LINMATH LPoint2f cast_to_float(const LPoint2d &source) {
  37. return LCAST(float, source);
  38. }
  39. INLINE_LINMATH LPoint3f cast_to_float(const LPoint3d &source) {
  40. return LCAST(float, source);
  41. }
  42. INLINE_LINMATH LPoint4f cast_to_float(const LPoint4d &source) {
  43. return LCAST(float, source);
  44. }
  45. INLINE_LINMATH LMatrix3f cast_to_float(const LMatrix3d &source) {
  46. return LCAST(float, source);
  47. }
  48. INLINE_LINMATH LMatrix4f cast_to_float(const LMatrix4d &source) {
  49. return LCAST(float, source);
  50. }