Пример #1
0
 public override bool Parallel(TLine otherObj, int a, int b, int p = 0)
 {
     if (x / a == y / b)
     {
         return(true);
     }
     return(false);
 }
Пример #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);
 }
Пример #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);
        }
Пример #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);
        }
Пример #5
0
 public abstract bool Belonging(TLine point, int koef, int a, int b, int p);
Пример #6
0
 public abstract bool Perpendicular(TLine other, int a, int b, int p);
Пример #7
0
 public abstract bool Parallel(TLine otherObj, int a, int b, int p);