pub mod algorithms;
pub mod core;
pub mod error;
pub mod io;
pub mod search;
pub mod utils;
pub mod prelude {
pub use crate::algorithms::*;
pub use crate::core::{Point, PointCloud, PointCloudView, PointXYZ, PointXYZRGB};
pub use crate::error::{CloudError, Result};
pub use crate::io;
pub use crate::search::*;
}
pub use crate::core::{Point, PointCloud, PointXYZ, PointXYZRGB};
pub use crate::error::{CloudError, Result};
#[cfg(test)]
mod tests {
use super::*;
use crate::prelude::*;
#[test]
fn test_basic_point_creation() {
let point = PointXYZ::new(1.0, 2.0, 3.0);
assert_eq!(point.position(), [1.0, 2.0, 3.0]);
}
#[test]
fn test_point_cloud_creation() {
let points = vec![PointXYZ::new(0.0, 0.0, 0.0), PointXYZ::new(1.0, 1.0, 1.0)];
let cloud = PointCloud::from_points(points);
assert_eq!(cloud.len(), 2);
}
}