mirror of https://codeberg.org/topola/topola.git
chore(planar-incr-embed): make some utilities public for downstream reuse
This commit is contained in:
parent
a6f86f488c
commit
f4f8971662
|
|
@ -20,7 +20,7 @@ pub mod math;
|
|||
pub mod mayrev;
|
||||
pub mod navmesh;
|
||||
pub mod planarr;
|
||||
mod utils;
|
||||
pub mod utils;
|
||||
|
||||
use alloc::boxed::Box;
|
||||
use core::fmt;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,10 @@ where
|
|||
(start_idx, it_first.chain(iter.take_while(not_is_start)))
|
||||
}
|
||||
|
||||
pub fn euclidean_distance<Scalar>(a: &spade::Point2<Scalar>, b: &spade::Point2<Scalar>) -> Scalar
|
||||
pub(crate) fn euclidean_distance<Scalar>(
|
||||
a: &spade::Point2<Scalar>,
|
||||
b: &spade::Point2<Scalar>,
|
||||
) -> Scalar
|
||||
where
|
||||
Scalar: num_traits::Float,
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue