Misc. typo tixes

This commit is contained in:
luz.paz
2018-07-31 13:14:14 -04:00
parent 8ecccb7508
commit 5f867be0c3
15 changed files with 21 additions and 21 deletions

View File

@@ -270,11 +270,11 @@ namespace RTProfilerBuilder {
if (adFocLen[i] >= adFocLen[i + 1]) throw new Exception("The distortion correction focal length points must be ordered!");
}
/// <summary>Calculates regession value of RT distortion amount for the given focal length.</summary>
/// <summary>Calculates regression value of RT distortion amount for the given focal length.</summary>
/// <param name="focalLength">Input focal length.</param>
/// <returns>Distortion in RT format.</returns>
public string GetDistortionAmount(double focalLength) {
// if it's out of area (which should just happing with e.g. rounding errors), return flat defaults.
// if it's out of area (which should just happen with e.g. rounding errors), return flat defaults.
if (focalLength <= adFocLen[0]) return adCorrect[0].ToString("G", CultureInfo.InvariantCulture);
if (focalLength >= adFocLen[adFocLen.Length - 1]) return adCorrect[adFocLen.Length - 1].ToString("G", CultureInfo.InvariantCulture);