コード例 #1
0
ファイル: Program.cs プロジェクト: emsnguyen/fpt_key_se_is
 public override double Distance(My2DPoint b)
 {
     return(Math.Sqrt(Math.Pow((this.x - b.x), 2) + Math.Pow((this.y - b.y), 2)));
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: emsnguyen/fpt_key_se_is
 public override double Distance(My2DPoint b)
 {
     return(Math.Abs(this.x - b.x) + Math.Abs(this.y - b.y));
 }
コード例 #3
0
 public override double Distance(My2DPoint target)
 {
     return(Math.Abs(target.x - this.x) + Math.Abs(target.y - this.y));
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: emsnguyen/fpt_key_se_is
 public abstract double Distance(My2DPoint target);
コード例 #5
0
ファイル: EuclideanPoint.cs プロジェクト: teach1997/csharp
 public override double Distance(My2DPoint target)
 {
     return(Math.Sqrt(Math.Pow((target.x - this.x), 2) + (Math.Pow((target.y - this.y), 2))));
 }