pub struct Triangle {
pub a: usize,
pub b: usize,
pub c: usize,
}Fields§
§a: usize§b: usize§c: usizeImplementations§
Source§impl Triangle
impl Triangle
pub fn new(a: usize, b: usize, c: usize) -> Self
pub fn contains_vertex(&self, vertex: usize) -> bool
pub fn circumcenter(&self, points: &[Point]) -> Point
pub fn circumradius(&self, points: &[Point]) -> f32
pub fn in_circumcircle(&self, points: &[Point], point: &Point) -> bool
Trait Implementations§
impl Copy for Triangle
impl StructuralPartialEq for Triangle
Auto Trait Implementations§
impl Freeze for Triangle
impl RefUnwindSafe for Triangle
impl Send for Triangle
impl Sync for Triangle
impl Unpin for Triangle
impl UnwindSafe for Triangle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more