From: frohlich <frohlich>
Date: Fri, 8 Dec 2006 12:16:56 +0000 (+0000)
Subject: Modified Files:
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=138825af6d511cf7c4f977be809241fbccafba94;p=simgear.git

Modified Files:
	point3d.hxx: Add explicit conversion functions to SGVec*
---

diff --git a/simgear/math/point3d.hxx b/simgear/math/point3d.hxx
index 529674fa..3980e203 100644
--- a/simgear/math/point3d.hxx
+++ b/simgear/math/point3d.hxx
@@ -132,6 +132,9 @@ public:
     SGGeod toSGGeod(void) const;
     SGGeoc toSGGeoc(void) const;
 
+    SGVec3d toSGVec3d(void) const;
+    SGVec3f toSGVec3f(void) const;
+
     // friends
     friend Point3D operator - (const Point3D& p);	            // -p1
     friend bool operator == (const Point3D& a, const Point3D& b);  // p1 == p2?
@@ -341,6 +344,16 @@ inline SGGeoc Point3D::toSGGeoc(void) const
   return geoc;
 }
 
+inline SGVec3d Point3D::toSGVec3d(void) const
+{
+  return SGVec3d(x(), y(), z());
+}
+
+inline SGVec3f Point3D::toSGVec3f(void) const
+{
+  return SGVec3f(x(), y(), z());
+}
+
 // FRIENDS
 
 inline Point3D operator - (const Point3D& a)