pub fn compute_face_skewness_2d<T: CoordsFloat>(
map: &CMap2<T>,
fid: FaceIdType,
) -> T
Expand description
Return the skewness of a given face.
§Arguments
map: &CMap2<T>
– Input map.fid: FaceIdType
– Face to compute the skewness of.
§Return
The value returned is comprised in the [0.0; 1.0]
range. 0.0
corresponds to ideal
(equilateral) cells while 1.0
corresponds to degenerate cells.
§Panics
This function will panic if a topological vertex has no associated coordinates.