Add Vector2D conversion
This commit is contained in:
parent
fad1edb9ce
commit
c0ab95aab0
|
@ -73,6 +73,20 @@ double Rez::appX(double x)
|
|||
return x / getRezFactor();
|
||||
}
|
||||
|
||||
Base::Vector2d Rez::appX(Base::Vector2d v)
|
||||
{
|
||||
Base::Vector2d result(appX(v.y),appX(v.y));
|
||||
return result;
|
||||
}
|
||||
|
||||
Base::Vector3d Rez::appX(Base::Vector3d v)
|
||||
{
|
||||
Base::Vector3d result(appX(v.x),appX(v.y),appX(v.z));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
//Misc conversions
|
||||
QPointF Rez::guiPt(QPointF p)
|
||||
{
|
||||
QPointF result = p;
|
||||
|
|
|
@ -45,6 +45,8 @@ public:
|
|||
static Base::Vector3d guiX(Base::Vector3d v);
|
||||
//turn Gui side value to App side value
|
||||
static double appX(double x);
|
||||
static Base::Vector2d appX(Base::Vector2d v);
|
||||
static Base::Vector3d appX(Base::Vector3d v);
|
||||
|
||||
static QPointF guiPt(QPointF p);
|
||||
static QPointF appPt(QPointF p);
|
||||
|
|
Loading…
Reference in New Issue
Block a user