예제 #1
0
        public static AbsoluteSimulationFrame ToSimulationFrame(AbsoluteSimulationFrame simulationFrameReference, ForwardDeltaSimulationFrame shortSimulationFrame)
        {
            var referenceShort = FromSimulationFrame(simulationFrameReference);
            var delta          = Delta(referenceShort, shortSimulationFrame);

            return(new AbsoluteSimulationFrame {
                Frame = simulationFrameReference.Frame + delta
            });
        }
예제 #2
0
 public static ForwardDeltaSimulationFrame FromSimulationFrame(AbsoluteSimulationFrame simulationFrame)
 {
     return(new ForwardDeltaSimulationFrame {
         DeltaFrame = (byte)(simulationFrame.Frame & 0xff)
     });
 }