Exemplo n.º 1
0
 public bool Equals(CoupleDouble other)
 {
     return(X.Equals(other.X) && Y.Equals(other.Y));
 }
Exemplo n.º 2
0
        public double GetDistance(CoupleDouble point)
        {
            double outPut = Math.Sqrt(Math.Pow(X - point.X, 2) + Math.Pow(Y - point.Y, 2));

            return(outPut);
        }
Exemplo n.º 3
0
 public void SetProjections(CoupleDouble value)
 {
     SetWhithRadian(value.Y / value.X > 0 ? Math.Atan(value.Y / value.X) : Math.PI - Math.Atan(value.Y / value.X));
 }