VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtVectorUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
11 #include "DtVector2.h"
12 #include "DtVector3.h"
13 #include "DtVector4.h"
14 
15 namespace makVrv {
16 
20 {
21 public:
22  static Vector2_32 toFloat32(const Vector2_64& vec)
23  {
24  return Vector2_32(static_cast<float32>(vec.x)
25  , static_cast<float32>(vec.y));
26  }
27  static Vector3_32 toFloat32(const Vector3_64& vec)
28  {
29  return Vector3_32(static_cast<float32>(vec.x)
30  , static_cast<float32>(vec.y)
31  , static_cast<float32>(vec.z));
32  }
33  static Vector4_32 toFloat32(const Vector4_64& vec)
34  {
35  return Vector4_32(static_cast<float32>(vec.x)
36  , static_cast<float32>(vec.y)
37  , static_cast<float32>(vec.z)
38  , static_cast<float32>(vec.w));
39  }
40 };
41 
42 } //namespace makVrv

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)