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