From 273d80b9f5f4f7ad992ccef961b56687b32a6e9c Mon Sep 17 00:00:00 2001 From: Ronald Heckel Date: Thu, 26 Mar 2026 09:33:52 +0100 Subject: [PATCH] [PIWEB-23709] fix: revert changing modifier to private The methods are used directly in PiWeb; for this reason, they must remain public. --- src/CalculatedCharacteristics/Functions/OprFunctions.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/CalculatedCharacteristics/Functions/OprFunctions.cs b/src/CalculatedCharacteristics/Functions/OprFunctions.cs index 054ba2e..d49b67f 100644 --- a/src/CalculatedCharacteristics/Functions/OprFunctions.cs +++ b/src/CalculatedCharacteristics/Functions/OprFunctions.cs @@ -364,7 +364,8 @@ public static IEnumerable Pt_Sym_DependentCharacteris /// Measured values for point2 [XYZ] /// Nominal values for point2 [XYZ] /// The calculated distance or null if the distance could not be calculated. - private static double? Calc_Pt_Dist( string direction, double?[] values1, double?[] nominalValues1, double?[] values2, double?[] nominalValues2 ) + // ReSharper disable once MemberCanBePrivate.Global + public static double? Calc_Pt_Dist( string direction, double?[] values1, double?[] nominalValues1, double?[] values2, double?[] nominalValues2 ) { ValidateForThreePointVector( values1, nameof( values1 ) ); ValidateForThreePointVector( values2, nameof( values2 ) ); @@ -832,7 +833,8 @@ public static IEnumerable Pt_Worst_Target_DependentCh /// Values for the first line point [XYZ] /// Values for the second line point [XYZ] /// The calculated distance or null if the distance could not be calculated. - private static double? Calc_Pt_Dist_Pt_2Pt( string direction, double[] valuesP, double[] valuesP1, double[] valuesP2 ) + // ReSharper disable once MemberCanBePrivate.Global + public static double? Calc_Pt_Dist_Pt_2Pt( string direction, double[] valuesP, double[] valuesP1, double[] valuesP2 ) { ValidateForThreePointVector( valuesP, nameof( valuesP ) ); ValidateForThreePointVector( valuesP1, nameof( valuesP1 ) ); @@ -981,7 +983,8 @@ public static IEnumerable Pt_Dist_Pt_2Pt_DependentCha /// Values for the second plane point [XYZ] /// Values for the third plane point [XYZ] /// The calculated distance or null if the distance could not be calculated. - private static double? Calc_Pt_Dist_Pt_3Pt( string direction, double[] valuesP, double[] valuesP1, double[] valuesP2, double[] valuesP3 ) + // ReSharper disable once MemberCanBePrivate.Global + public static double? Calc_Pt_Dist_Pt_3Pt( string direction, double[] valuesP, double[] valuesP1, double[] valuesP2, double[] valuesP3 ) { ValidateForThreePointVector( valuesP, nameof( valuesP ) ); ValidateForThreePointVector( valuesP1, nameof( valuesP1 ) );