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))); }
/// <summary>2次元ベクトルの外積を求める</summary> public static double GetOuterProduct(PointD a, PointD b) { return(a.X * b.Y - a.Y * b.X); }
/// <summary>2次元ベクトルの内積を求める</summary> public static double GetInnerProduct(PointD a, PointD b) { return(a.X * b.X + a.Y * b.Y); }
public int Make(string text, double height, PointD position, Attachment attachment) { var textId = this.Make(text, Font.MSGothic, height, position, attachment); return(textId); }