Modified Files:
point3d.hxx: Add explicit conversion functions to SGVec*
This commit is contained in:
@@ -132,6 +132,9 @@ public:
|
|||||||
SGGeod toSGGeod(void) const;
|
SGGeod toSGGeod(void) const;
|
||||||
SGGeoc toSGGeoc(void) const;
|
SGGeoc toSGGeoc(void) const;
|
||||||
|
|
||||||
|
SGVec3d toSGVec3d(void) const;
|
||||||
|
SGVec3f toSGVec3f(void) const;
|
||||||
|
|
||||||
// friends
|
// friends
|
||||||
friend Point3D operator - (const Point3D& p); // -p1
|
friend Point3D operator - (const Point3D& p); // -p1
|
||||||
friend bool operator == (const Point3D& a, const Point3D& b); // p1 == p2?
|
friend bool operator == (const Point3D& a, const Point3D& b); // p1 == p2?
|
||||||
@@ -341,6 +344,16 @@ inline SGGeoc Point3D::toSGGeoc(void) const
|
|||||||
return geoc;
|
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
|
// FRIENDS
|
||||||
|
|
||||||
inline Point3D operator - (const Point3D& a)
|
inline Point3D operator - (const Point3D& a)
|
||||||
|
|||||||
Reference in New Issue
Block a user