FlatRedBall.Gui.TimeLine.PositionToValueRelative C# (CSharp) Méthode

PositionToValueRelative() protected méthode

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.
Résultat double
        protected double PositionToValueRelative(float worldUnitRelativeX)
		{
            return mStart + mValueWidth * (worldUnitRelativeX - 1 + ScaleX) / (2 * ScaleX - 2);
        }