Beispiel #1
0
 /// <summary>
 /// Create an ellipse from the specific RotatedRect
 /// </summary>
 /// <param name="box2d">The RotatedRect representation of this ellipse</param>
 public Ellipse(RotatedRect box2d)
 {
     _box2D = box2d;
 }
Beispiel #2
0
 /// <summary>
 /// Create an ellipse with specific parameters
 /// </summary>
 /// <param name="center"> The center of the ellipse</param>
 /// <param name="size"> The width and height of the ellipse</param>
 /// <param name="angle"> The rotation angle in radian for the ellipse</param>
 public Ellipse(PointF center, SizeF size, float angle)
 {
     _box2D = new RotatedRect(center, size, angle);
 }