1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use super::*;

pub mod line_2d;
mod line_3d;
mod traits;

/// A line_like segment of finite length in 3D space, determined by a starting point and an ending point
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct Line3D<T> {
    /// Start point of the line_like segment in 3D space.
    pub s: Point3D<T>,
    /// End point of the line_like segment in 3D space.
    pub e: Point3D<T>,
}

#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct Vector3D<T> {
    pub dx: T,
    pub dy: T,
    pub dz: T,
}