Added unit-independent distance type.
This commit is contained in:
+11
-3
@@ -1,6 +1,6 @@
|
||||
/* Point.inl
|
||||
*
|
||||
* Copyright (C) 2013 Jim Evins <evins@snaught.com>
|
||||
* Copyright (C) 2013-2016 Jim Evins <evins@snaught.com>
|
||||
*
|
||||
* This file is part of gLabels-qt.
|
||||
*
|
||||
@@ -22,7 +22,15 @@
|
||||
namespace libglabels
|
||||
{
|
||||
|
||||
inline double Point::x() const { return mX; }
|
||||
inline double Point::y() const { return mY; }
|
||||
inline Distance Point::x() const
|
||||
{
|
||||
return mX;
|
||||
}
|
||||
|
||||
|
||||
inline Distance Point::y() const
|
||||
{
|
||||
return mY;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user