Exemplo n.º 1
0
 public override bool Parallel(TLine otherObj, int a, int b, int p = 0)
 {
     if (x / a == y / b)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 public override bool Belonging(TLine point, int koef, int a, int b, int p)
 {
     if (point.x * a + point.y * b + z * p + koef == 0)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
        public override bool Perpendicular(TLine other, int a, int b, int p)
        {
            if (!(other is LineSpace))
            {
                throw new Exception("The object is not LineSpace");
            }
            LineSpace line = other as LineSpace;

            if (line.x * a + line.y * b + z * p == 0)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 4
0
        public override bool Parallel(TLine otherObj, int a, int b, int p)
        {
            if (!(otherObj is LineSpace))
            {
                throw new Exception("The object is not LineSpace");
            }
            LineSpace line = otherObj as LineSpace;

            if (line.x / a == line.y / b && line.x / a == line.z / p && line.y / b == line.z / p)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 5
0
 public abstract bool Belonging(TLine point, int koef, int a, int b, int p);
Exemplo n.º 6
0
 public abstract bool Perpendicular(TLine other, int a, int b, int p);
Exemplo n.º 7
0
 public abstract bool Parallel(TLine otherObj, int a, int b, int p);