rene 0.2.0

Computational geometry.
Documentation
1
2
3
4
5
6
7
8
9
use crate::geometries::Point;

use super::types::Segment;

impl<Scalar> From<(Point<Scalar>, Point<Scalar>)> for Segment<Scalar> {
    fn from((start, end): (Point<Scalar>, Point<Scalar>)) -> Self {
        Self::new(start, end)
    }
}