3131//! maximum radius used for querying.
3232//!
3333//! ```rust
34- //! use captree ::Capt;
34+ //! use capt ::Capt;
3535//!
3636//! // list of points in cloud
3737//! let points = [[0.0, 1.1], [0.2, 3.1]];
4646//! the radius range.
4747//!
4848//! ```rust
49- //! # use captree ::Capt;
49+ //! # use capt ::Capt;
5050//! # let points = [[0.0, 1.1], [0.2, 3.1]];
5151//! # let capt = Capt::<2>::new(&points, (0.05, 2.0));
5252//! let center = [0.0, 0.0]; // center of sphere
@@ -143,15 +143,15 @@ use elain::{Align, Alignment};
143143/// # }
144144/// }
145145///
146- /// impl captree ::Axis for HyperInt {
146+ /// impl capt ::Axis for HyperInt {
147147/// const ZERO: Self = Self::Real(0);
148148/// const INFINITY: Self = Self::PlusInf;
149149/// const NEG_INFINITY: Self = Self::MinusInf;
150- ///
150+ ///
151151/// fn is_finite(self) -> bool {
152152/// matches!(self, Self::Real(_))
153153/// }
154- ///
154+ ///
155155/// fn in_between(self, rhs: Self) -> Self {
156156/// match (self, rhs) {
157157/// (Self::PlusInf, Self::MinusInf) | (Self::MinusInf, Self::PlusInf) => Self::Real(0),
@@ -363,7 +363,7 @@ where
363363/// let points = [[0.0, 0.1], [0.4, -0.2], [-0.2, -0.1]];
364364///
365365/// // query radii must be between 0.0 and 0.2
366- /// let t = captree ::Capt::<2>::new(&points, (0.0, 0.2));
366+ /// let t = capt ::Capt::<2>::new(&points, (0.0, 0.2));
367367///
368368/// assert!(!t.collides(&[0.0, 0.3], 0.1));
369369/// assert!(t.collides(&[0.0, 0.2], 0.15));
@@ -437,7 +437,7 @@ where
437437 /// ```
438438 /// let points = [[0.0]];
439439 ///
440- /// let capt = captree ::Capt::<1>::new(&points, (0.0, f32::INFINITY));
440+ /// let capt = capt ::Capt::<1>::new(&points, (0.0, f32::INFINITY));
441441 ///
442442 /// assert!(capt.collides(&[1.0], 1.5));
443443 /// assert!(!capt.collides(&[1.0], 0.5));
@@ -449,7 +449,7 @@ where
449449 /// let points = [[0.0]; 256];
450450 ///
451451 /// // note that we are using `u8` as our index type
452- /// let capt = captree ::Capt::<1, 8, f32, u8>::new(&points, (0.0, f32::INFINITY));
452+ /// let capt = capt ::Capt::<1, 8, f32, u8>::new(&points, (0.0, f32::INFINITY));
453453 /// ```
454454 pub fn new ( points : & [ [ A ; K ] ] , r_range : ( A , A ) ) -> Self {
455455 Self :: try_new ( points, r_range)
@@ -475,7 +475,7 @@ where
475475 /// ```
476476 /// let points = [[0.0]];
477477 ///
478- /// let capt = captree ::Capt::<1>::try_new(&points, (0.0, f32::INFINITY)).unwrap();
478+ /// let capt = capt ::Capt::<1>::try_new(&points, (0.0, f32::INFINITY)).unwrap();
479479 /// ```
480480 ///
481481 /// In failure, we get an `Err`.
@@ -484,7 +484,7 @@ where
484484 /// let points = [[0.0]; 256];
485485 ///
486486 /// // note that we are using `u8` as our index type
487- /// let opt = captree ::Capt::<1, 8, f32, u8>::try_new(&points, (0.0, f32::INFINITY));
487+ /// let opt = capt ::Capt::<1, 8, f32, u8>::try_new(&points, (0.0, f32::INFINITY));
488488 ///
489489 /// assert!(opt.is_err());
490490 /// ```
@@ -697,7 +697,7 @@ where
697697 ///
698698 /// ```
699699 /// let points = [[0.0; 3], [1.0; 3], [0.1, 0.5, 1.0]];
700- /// let capt = captree ::Capt::<3>::new(&points, (0.0, 1.0));
700+ /// let capt = capt ::Capt::<3>::new(&points, (0.0, 1.0));
701701 ///
702702 /// assert!(capt.collides(&[1.1; 3], 0.2));
703703 /// assert!(!capt.collides(&[2.0; 3], 1.0));
@@ -793,7 +793,7 @@ where
793793 /// ];
794794 /// let radii = Simd::splat(0.05);
795795 ///
796- /// let tree = captree ::Capt::<2, 4, f32, u32>::new(&points, (0.0, 0.1));
796+ /// let tree = capt ::Capt::<2, 4, f32, u32>::new(&points, (0.0, 0.1));
797797 ///
798798 /// println!("{tree:?}");
799799 ///
0 commit comments