public Dictionary <FixedPoint, FixedPoint> CalculateSinData() { var data = GetTableDto(Operation.Sin); return(data.ToDictionary(x => FixedPoint.From(x.Key), x => FixedPoint.FromExplicit(x.Value) , FixedPointEqualityComparer.Instance)); }
public IGameLoop SetPhysicsSimulationsPerSecond(uint frequency) { _physicsSimulationsPerSecond = TicksPerSecond / frequency; _physicsDeltaPerSimulation = FixedPoint.From(frequency); return(this); }
public FixedPoint CalculateNormalisedDelta() { return FixedPoint.From((float) _remainingDelta / _frequency); }