Struct shape_core::Triangle
source · pub struct Triangle<T> {
pub vertex: [Point<T>; 3],
}Fields§
§vertex: [Point<T>; 3]Implementations§
source§impl<T> Triangle<T>where
T: Clone + Real,
impl<T> Triangle<T>where T: Clone + Real,
pub fn is_valid(&self) -> bool
pub fn is_congruent(&self) -> bool
pub fn is_isosceles(&self) -> bool
pub fn perimeter(&self) -> T
sourcepub fn inscribed_circle(&self) -> Circle<T>
pub fn inscribed_circle(&self) -> Circle<T>
Get the inscribed circle of the triangle
sourcepub fn circumscribed_circle(&self) -> Circle<T>
pub fn circumscribed_circle(&self) -> Circle<T>
Get the circumscribed circle of the triangle.