Exemple #1
0
 public bool Equivalent(PointRAS other, double epsilon)
 {
     return
         (Math.Abs(RL - other.RL) <= epsilon &&
          Math.Abs(AP - other.AP) <= epsilon &&
          Math.Abs(SI - other.SI) <= epsilon);
 }
Exemple #2
0
 public bool Equals(PointRAS other)
 {
     return(Equivalent(other, 0.0));
 }
Exemple #3
0
        public static PointRAS operator +(PointRAS p1, PointRAS p2)
        {
            PointRAS newPoint = new PointRAS(p1.RL + p2.RL, p1.AP + p2.AP, p1.SI + p2.SI);

            return(newPoint);
        }
Exemple #4
0
        public static PointRAS operator -(PointRAS p1, PointRAS p2)
        {
            PointRAS newPoint = new PointRAS(p1.RL - p2.RL, p1.AP - p2.AP, p1.SI - p2.SI);

            return(newPoint);
        }
Exemple #5
0
 public PointRAS(PointRAS src)
 {
     RL = src.RL;
     AP = src.AP;
     SI = src.SI;
 }
Exemple #6
0
 public bool Equivalent(PointRAS other)
 {
     return(Equivalent(other, RasEpsilon));
 }