Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public bool Equals(PointRAS other)
 {
     return(Equivalent(other, 0.0));
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 5
0
 public PointRAS(PointRAS src)
 {
     RL = src.RL;
     AP = src.AP;
     SI = src.SI;
 }
Ejemplo n.º 6
0
 public bool Equivalent(PointRAS other)
 {
     return(Equivalent(other, RasEpsilon));
 }