コード例 #1
0
ファイル: Box2D.cs プロジェクト: soulsheng/dot-imaging
 /// <summary>
 /// Creates new structure from area and angle.
 /// </summary>
 /// <param name="rect">Area.</param>
 /// <param name="angle">Angle in degrees.</param>
 public Box2D(RectangleF rect, float angle)
     : this(rect.Center(), rect.Size, angle)
 {
 }
コード例 #2
0
ファイル: Box2D.cs プロジェクト: GorelH/dot-imaging
 /// <summary>
 /// Creates new structure from area and angle.
 /// </summary>
 /// <param name="rect">Area.</param>
 /// <param name="angle">Angle in degrees.</param>
 public Box2D(RectangleF rect, float angle)
     : this(rect.Center(), rect.Size, angle)
 {
 }