TriangleLogic

Trait TriangleLogic 

Source
pub trait TriangleLogic<V, E, T> {
    // Required methods
    fn area(&self) -> f64;
    fn area3d(&self) -> f64;
    fn edges(&self) -> Vec<E>;
    fn has_edge(&self, edge: &E) -> bool;
    fn has_vertex(&self, vertex: &V) -> bool;
    fn is_neighbor(&self, other: &T) -> Option<E>;
    fn regularity(&self, other: &V) -> f64;
    fn is_regular(&self, vertex: &V) -> bool;
    fn is_eps_regular(&self, vertex: &V, epsilon: f64) -> bool;
    fn orientation(&self) -> f64;
    fn vertices(&self) -> Vec<WeightedVertex>;
}
Expand description

Describes common behaviour between regular and weighted triangles

Required Methods§

Source

fn area(&self) -> f64

Source

fn area3d(&self) -> f64

Source

fn edges(&self) -> Vec<E>

Source

fn has_edge(&self, edge: &E) -> bool

Source

fn has_vertex(&self, vertex: &V) -> bool

Source

fn is_neighbor(&self, other: &T) -> Option<E>

Source

fn regularity(&self, other: &V) -> f64

Source

fn is_regular(&self, vertex: &V) -> bool

Check whether the triangle is regular, w.r.t to some vertex; by tolerance of epsilon.

Source

fn is_eps_regular(&self, vertex: &V, epsilon: f64) -> bool

Source

fn orientation(&self) -> f64

Source

fn vertices(&self) -> Vec<WeightedVertex>

Implementors§