VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVectorUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
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 Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)