mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 10:10:31 +00:00
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:
parent
fc2801ce61
commit
6e01406539
@ -47,13 +47,13 @@ AxisPhysicsModel::~AxisPhysicsModel()
|
|||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
AxisPhysicsModel::GetVelocity()
|
AxisPhysicsModel::GetVelocity() const
|
||||||
{
|
{
|
||||||
return LinearInterpolate(mPrevState.v, mNextState.v, mProgress);
|
return LinearInterpolate(mPrevState.v, mNextState.v, mProgress);
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
AxisPhysicsModel::GetPosition()
|
AxisPhysicsModel::GetPosition() const
|
||||||
{
|
{
|
||||||
return LinearInterpolate(mPrevState.p, mNextState.p, mProgress);
|
return LinearInterpolate(mPrevState.p, mNextState.p, mProgress);
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Gets the raw velocity of this axis at this moment.
|
* 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.
|
* 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.
|
* 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.
|
* Sets the raw position of this axis at this moment.
|
||||||
|
Loading…
Reference in New Issue
Block a user