Example #1
0
        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));
        }
Example #2
0
        public IGameLoop SetPhysicsSimulationsPerSecond(uint frequency)
        {
            _physicsSimulationsPerSecond = TicksPerSecond / frequency;
            _physicsDeltaPerSimulation   = FixedPoint.From(frequency);

            return(this);
        }
Example #3
0
 public FixedPoint CalculateNormalisedDelta()
 {
     return FixedPoint.From((float) _remainingDelta / _frequency);
 }