/// Return whether if given point is inside of circum circle of this triangle
Return whether if given point is inside of circum circle of this triangle
Return whether if given point is inside of circum circle of this triangle
pub fn check_circum_circle(&self, point: &Point2<i32>) -> Intersection {
        //! Implementation referenced on https://en.wikipedia.org/wiki/Circumscribed_circle
        let v1 = self.0 - *point;
        let v2 = self.1 - *point;
        let v3 = self.2 - *point;
        let threshold = squared_length(&v1) * cross(&v2, &v3)
            - squared_length(&v2) * cross(&v1, &v3)
            + squared_length(&v3) * cross(&v1, &v2);
        match threshold {
            val if val > 0 => Intersection::Inner,
            val if val < 0 => Intersection::Outer,
            _ => Intersection::Overlapped,
        }
    }
pub fn check_circum_circle ( & self , point : & Point2 < i32 > ) -> Intersection { //! Implementation referenced on https://en.wikipedia.org/wiki/Circumscribed_circle let v1 = self . 0 - * point ; let v2 = self . 1 - * point ; let v3 = self . 2 - * point ; let threshold = squared_length ( & v1 ) * cross ( & v2 , & v3 ) - squared_length ( & v2 ) * cross ( & v1 , & v3 ) + squared_length ( & v3 ) * cross ( & v1 , & v2 ) ; match threshold { val if val > 0 => Intersection :: Inner , val if val < 0 => Intersection :: Outer , _ => Intersection :: Overlapped , } }
Return whether if given point is inside of circum circle of this triangle
Return whether if given point is inside of circum circle of this triangle
&self
point
&Point2<i32>