public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); curIndex += orientation.Deserialize(serialized, curIndex); for (int i = 0; i < (int)orientation_covariance.Length; i++) { orientation_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(orientation_covariance[i]).Length; } curIndex += angular_velocity.Deserialize(serialized, curIndex); for (int i = 0; i < (int)angular_velocity_covariance.Length; i++) { angular_velocity_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(angular_velocity_covariance[i]).Length; } curIndex += linear_acceleration.Deserialize(serialized, curIndex); for (int i = 0; i < (int)linear_acceleration_covariance.Length; i++) { linear_acceleration_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(linear_acceleration_covariance[i]).Length; } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += translation.Deserialize(serialized, curIndex); curIndex += rotation.Deserialize(serialized, curIndex); return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += force.Deserialize(serialized, curIndex); curIndex += torque.Deserialize(serialized, curIndex); return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); curIndex += vector.Deserialize(serialized, curIndex); return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += linear.Deserialize(serialized, curIndex); curIndex += angular.Deserialize(serialized, curIndex); return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); curIndex += magnetic_field.Deserialize(serialized, curIndex); for (int i = 0; i < (int)magnetic_field_covariance.Length; i++) { magnetic_field_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(magnetic_field_covariance[i]).Length; } return(curIndex - startIndex); }