Updated APIs to use new GetClosePointData() from Graphing Engine. (#1250)
* Updated APIs to use new GetClosePointData() from Graphing Engine. Now specifiying precision on API consumption to aid with correct display and rounding. * Updated function to be const-corect * Updated to use correct APIs * Converted TraceValue from Point to two doubles, point's X and Y was using float and conversion between float and doubles was causing unwanted rounding. * Update to pch file and fixing typo * Point to updated graphing version
This commit is contained in:
committed by
GitHub
parent
2608a353de
commit
0175b51655
@@ -40,6 +40,7 @@ namespace MockGraphingImpl
|
||||
virtual HRESULT GetClosePointData(
|
||||
double inScreenPointX,
|
||||
double inScreenPointY,
|
||||
double precision,
|
||||
int& formulaIdOut,
|
||||
float& xScreenPointOut,
|
||||
float& yScreenPointOut,
|
||||
@@ -52,11 +53,9 @@ namespace MockGraphingImpl
|
||||
formulaIdOut = 0;
|
||||
xScreenPointOut = 0;
|
||||
yScreenPointOut = 0;
|
||||
precision = 0;
|
||||
xValueOut = 0;
|
||||
yValueOut = 0;
|
||||
rhoValueOut = 0;
|
||||
thetaValueOut = 0;
|
||||
tValueOut = 0;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -72,7 +71,7 @@ namespace MockGraphingImpl
|
||||
virtual HRESULT ChangeRange(Graphing::Renderer::ChangeRangeAction action)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
virtual HRESULT MoveRangeByRatio(double ratioX, double ratioY)
|
||||
{
|
||||
return S_OK;
|
||||
@@ -110,6 +109,7 @@ namespace MockGraphingImpl
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
double m_xMin;
|
||||
double m_xMax;
|
||||
|
Reference in New Issue
Block a user