FlatRedBall.Gui.TimeLine.PositionToValueRelative C# (CSharp) Method

PositionToValueRelative() protected method

Converts the argument relative-to-TimeLine argument to a value that it represents.
This mehod is used to convert the position bar's relative X to an actual value.
protected PositionToValueRelative ( float worldUnitRelativeX ) : double
worldUnitRelativeX float The relative-to-Timeline position.
return double
        protected double PositionToValueRelative(float worldUnitRelativeX)
		{
            return mStart + mValueWidth * (worldUnitRelativeX - 1 + ScaleX) / (2 * ScaleX - 2);
        }