Example #1
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;
            }
        }