예제 #1
0
        public static Boolean InOurOut(circle c, point p)
        {
            double d = point.distance(c.Center, p);

            if (d <= c.Radious)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
 public static double circumference(circle c)
 {
     return(2 * Math.PI * c.Radious);
 }
예제 #3
0
 public static double area(circle c)
 {
     return(Math.PI * c.Radious * c.Radious);
 }