chemrust_nasl/algorithm/search_config.rs
1use nalgebra::Point3;
2
3#[derive(Debug, Clone, Copy)]
4pub struct SearchConfig<'a> {
5 to_check: &'a [(usize, Point3<f64>)],
6 bondlength: f64,
7}
8
9impl<'a> SearchConfig<'a> {
10 pub fn new(to_check: &'a [(usize, Point3<f64>)], bondlength: f64) -> Self {
11 Self {
12 to_check,
13 bondlength,
14 }
15 }
16
17 pub fn to_check(&self) -> &[(usize, Point3<f64>)] {
18 self.to_check
19 }
20
21 pub fn bondlength(&self) -> f64 {
22 self.bondlength
23 }
24}