Bug 1402498 - Mark two methods of AxisPhysicsModel as const. r=rhunt

MozReview-Commit-ID: BTL8YwAIHtu

--HG--
extra : rebase_source : 9465825c5658d7caec453046f651ad830bacdb13
This commit is contained in:
Markus Stange 2017-09-17 13:41:14 +02:00
parent fc2801ce61
commit 6e01406539
2 changed files with 4 additions and 4 deletions

View File

@ -47,13 +47,13 @@ AxisPhysicsModel::~AxisPhysicsModel()
}
double
AxisPhysicsModel::GetVelocity()
AxisPhysicsModel::GetVelocity() const
{
return LinearInterpolate(mPrevState.v, mNextState.v, mProgress);
}
double
AxisPhysicsModel::GetPosition()
AxisPhysicsModel::GetPosition() const
{
return LinearInterpolate(mPrevState.p, mNextState.p, mProgress);
}

View File

@ -37,7 +37,7 @@ public:
/**
* Gets the raw velocity of this axis at this moment.
*/
double GetVelocity();
double GetVelocity() const;
/**
* Sets the raw velocity of this axis at this moment.
@ -47,7 +47,7 @@ public:
/**
* Gets the raw position of this axis at this moment.
*/
double GetPosition();
double GetPosition() const;
/**
* Sets the raw position of this axis at this moment.