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§
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
Sourcefn is_regular(&self, vertex: &V) -> bool
fn is_regular(&self, vertex: &V) -> bool
Check whether the triangle is regular, w.r.t to some vertex; by tolerance of epsilon.