public static bool CheckInCirlce(double x, double y, Circle c)
 {
     double kc = Math.Sqrt((x - c.GetX()) * (x - c.GetX()) + (y - c.GetY()) * (y - c.GetY()));
     if (kc < c.GetRadius())
     { return true; }
     return false;
 }
Пример #2
0
        public static bool CheckInCirlce(double x, double y, Circle c)
        {
            double kc = Math.Sqrt((x - c.GetX()) * (x - c.GetX()) + (y - c.GetY()) * (y - c.GetY()));

            if (kc < c.GetRadius())
            {
                return(true);
            }
            return(false);
        }
Пример #3
0
 public LoKhoan(String maHoChieu, Circle c)
 {
     this.iD         = null;
     this.maHoChieu  = maHoChieu;
     this.maBanVe    = BS_HoChieu.HoChieu(maHoChieu).MaBanVe;
     this.maMayKhoan = null;
     this.maLoKhoan  = c.GetID().ToString();
     this.banKinh    = c.GetRadius();
     this.chieuSau   = 0;
     this.huongKhoan = null;
     this.toaDoX     = c.GetX();
     this.toaDoY     = c.GetY();
     this.lt         = 0;
     this.lkk        = 0;
     this.l0         = 0;
     this.lbua       = 0;
 }
 public LoKhoan(String maHoChieu, Circle c)
 {
     this.iD = null;
     this.maHoChieu = maHoChieu;
     this.maBanVe = BS_HoChieu.HoChieu(maHoChieu).MaBanVe;
     this.maMayKhoan = null;
     this.maLoKhoan = c.GetID().ToString();
     this.banKinh = c.GetRadius();
     this.chieuSau = 0;
     this.huongKhoan = null;
     this.toaDoX = c.GetX();
     this.toaDoY = c.GetY();
     this.lt = 0;
     this.lkk = 0;
     this.l0 = 0;
     this.lbua = 0;
 }