setD method

Implementation

VrDeviceInfoC setD(VrDeviceInfoD o) {
  hResolution = o.hResolution;
  vResolution = o.vResolution;
  hScreenSize = o.hScreenSize;
  vScreenSize = o.vScreenSize;
  eyeToScreenDistance = o.eyeToScreenDistance;
  lensSeparationDistance = o.lensSeparationDistance;
  interpupillaryDistance = o.interpupillaryDistance;

  for (int i = 0; i < paramCount; i++) {
    lensDistortionValues[i] = o.lensDistortionValues[i];
  }
  for (int i = 0; i < paramCount; i++) {
    chromaAbCorrection[i] = o.chromaAbCorrection[i];
  }
  return this;
}