Trait caminos_lib::topology::projective::Geometry
source · pub trait Geometry {
type Point;
type Line;
// Required methods
fn amount_points(&self) -> usize;
fn amount_lines(&self) -> usize;
fn point_by_index(&self, index: usize) -> Option<Self::Point>;
fn line_by_index(&self, index: usize) -> Option<Self::Line>;
fn index_of_point(&self, point: &Self::Point) -> usize;
fn index_of_line(&self, point: &Self::Line) -> usize;
fn is_incident(&self, line: &Self::Line, point: &Self::Point) -> bool;
}