コード例 #1
0
 public static double GetDistance(PointD a, PointD b)
 {
     return(Math.Sqrt(Math.Pow(a.X - b.X, 2) + Math.Pow(a.Y - b.Y, 2)));
 }
コード例 #2
0
 /// <summary>2次元ベクトルの外積を求める</summary>
 public static double GetOuterProduct(PointD a, PointD b)
 {
     return(a.X * b.Y - a.Y * b.X);
 }
コード例 #3
0
 /// <summary>2次元ベクトルの内積を求める</summary>
 public static double GetInnerProduct(PointD a, PointD b)
 {
     return(a.X * b.X + a.Y * b.Y);
 }
コード例 #4
0
ファイル: MText.cs プロジェクト: nguyendinhthi/SocketPlan
        public int Make(string text, double height, PointD position, Attachment attachment)
        {
            var textId = this.Make(text, Font.MSGothic, height, position, attachment);

            return(textId);
        }