public static AbsoluteSimulationFrame ToSimulationFrame(AbsoluteSimulationFrame simulationFrameReference, ForwardDeltaSimulationFrame shortSimulationFrame) { var referenceShort = FromSimulationFrame(simulationFrameReference); var delta = Delta(referenceShort, shortSimulationFrame); return(new AbsoluteSimulationFrame { Frame = simulationFrameReference.Frame + delta }); }
public static ForwardDeltaSimulationFrame FromSimulationFrame(AbsoluteSimulationFrame simulationFrame) { return(new ForwardDeltaSimulationFrame { DeltaFrame = (byte)(simulationFrame.Frame & 0xff) }); }