Make midpoints of p2_local_models public dev

Thu, 08 May 2025 22:53:31 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 08 May 2025 22:53:31 -0500
branch
dev
changeset 127
212f75931da0
parent 126
0ccad3ee8e95
child 128
f75bf34adda0

Make midpoints of p2_local_models public

src/fe_model/p2_local_model.rs file | annotate | diff | comparison | revisions
--- 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<F: Float> RealInterval<F> {
     #[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<F: Float> PlanarSimplex<F> {
     #[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);

mercurial