mod point;
mod id;
mod blob;
pub mod proximity;
pub mod merge;
pub mod config;
pub use point::Point;
pub use id::Id;
pub use blob::Blob;
#[derive(Clone)]
pub struct PlacedPoint {
pub id: Id,
pub point: Point,
pub blob: Blob,
}
impl PlacedPoint {
pub fn new(id: Id, point: Point, blob: Blob) -> Self {
Self { id, point, blob }
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_placed_point_creation() {
let id = Id::now();
let point = Point::new(vec![1.0, 2.0, 3.0]);
let blob = Blob::new(vec![1, 2, 3]);
let placed = PlacedPoint::new(id, point.clone(), blob);
assert_eq!(placed.point.dimensionality(), 3);
assert_eq!(placed.blob.size(), 3);
}
}