Ejemplo n.º 1
0
 public Krug(Tacka A, Tacka B, string ime)
 {
     if (A.Rastojanje(B) < GeoGebra.eps)
     {
         this.C   = null;
         this.r   = 0;
         this.ime = "-1";
     }
     else
     {
         this.C   = A;
         this.r   = A.Rastojanje(B);
         this.ime = ime;
     }
 }
Ejemplo n.º 2
0
 public int Pripada(Tacka A)
 {
     if (this.R - A.Rastojanje(this.C) > GeoGebra.eps)
     {
         return(2);
     }
     if (Math.Abs(A.Rastojanje(this.C) - this.R) < GeoGebra.eps)
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }
Ejemplo n.º 3
0
        public Krug(Tacka A1, Tacka A2, Tacka A3, string ime)
        {
            Duz a = new Duz(A1, A2);
            Duz b = new Duz(A2, A3);

            if ((Math.Abs(b.K - a.K) < GeoGebra.eps) || (a.Ime == "-1") || (b.Ime == "-1"))
            {
                this.C   = null;
                this.r   = 0;
                this.ime = "-1";
            }
            else
            {
                this.C   = b.Simetrala().Presek(a.Simetrala());
                this.r   = C.Rastojanje(A1);
                this.ime = ime;
            }
        }
Ejemplo n.º 4
0
 public virtual bool Pripada(Tacka T)
 {
     return(T.Rastojanje(this) < GeoGebra.eps);
 }
Ejemplo n.º 5
0
 public override bool Pripada(Tacka T)
 {
     return((T.Rastojanje(this) < GeoGebra.eps) && (T.X - Math.Min(this.Tacka1.X, this.Tacka2.X) > -2 * GeoGebra.eps) && (Math.Max(this.Tacka1.X, this.Tacka2.X) - T.X > -2 * GeoGebra.eps));
 }