Misc. typo tixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user