コード例 #1
0
 /// <summary>
 /// Floating-point rectangle constructor
 /// </summary>
 /// <param name="top">The top of the rectangle</param>
 /// <param name="left">The left of the rectangle</param>
 /// <param name="bottom">The bottom of the rectangle</param>
 /// <param name="right">The right of the rectangle</param>
 public DBoudingBox(double left, double top, double width, double height)
 {
     topLeft = new Vector2(left, top);
     size    = new Vector2(width, height);
 }
コード例 #2
0
ファイル: DRect.cs プロジェクト: ntj/GravurGIS
 /// <summary>
 /// Floating-point rectangle constructor
 /// </summary>
 /// <param name="top">The top of the rectangle</param>
 /// <param name="left">The left of the rectangle</param>
 /// <param name="bottom">The bottom of the rectangle</param>
 /// <param name="right">The right of the rectangle</param>
 public DBoudingBox(double left, double top, double width, double height)
 {
     topLeft = new Vector2(left, top);
     size    = new Vector2(width, height);
 }