# HG changeset patch # User Tuomo Valkonen # Date 1746762811 18000 # Node ID 212f75931da0c55f81bbc66fe4de2bdfcf93757e # Parent 0ccad3ee8e957481108c5e9edf7056fc6ca0451e Make midpoints of p2_local_models public diff -r 0ccad3ee8e95 -r 212f75931da0 src/fe_model/p2_local_model.rs --- a/src/fe_model/p2_local_model.rs Thu May 01 15:32:10 2025 -0500 +++ b/src/fe_model/p2_local_model.rs Thu May 08 22:53:31 2025 -0500 @@ -140,7 +140,7 @@ impl RealInterval { #[inline] - fn midpoints(&self) -> [Loc<1, F>; 1] { + pub fn midpoints(&self) -> [Loc<1, F>; 1] { let [ref n0, ref n1] = &self.0; let n01 = midpoint(n0, n1); [n01] @@ -187,7 +187,7 @@ impl PlanarSimplex { #[inline] /// Returns the midpoints of all the edges of the simplex - fn midpoints(&self) -> [Loc<2, F>; 3] { + pub fn midpoints(&self) -> [Loc<2, F>; 3] { let [ref n0, ref n1, ref n2] = &self.0; let n01 = midpoint(n0, n1); let n12 = midpoint(n1, n2);