Example #1
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="RightTriangle" /> class.
 /// </summary>
 /// <param name="x">
 ///   The horizontal distance from the left edge of the game space.
 /// </param>
 /// <param name="y">
 ///   The vertical distance from the top edge of the game space.
 /// </param>
 /// <param name="width">The width of the triangle.</param>
 /// <param name="height">The height of the triangle.</param>
 /// <param name="slopedSides">
 ///   Which sides of the triangle are replaced by the slope.
 /// </param>
 public RightTriangle(float x, float y, float width, float height, RtSlopedSides slopedSides)
     : this(new BoundingRectangle(x, y, width, height), slopedSides)
 {
 }
Example #2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="RightTriangle" /> class.
 /// </summary>
 /// <param name="bounds">
 ///   The rectangle that forms the bounds of the triangle.
 /// </param>
 /// <param name="slopedSides">Which sides of the triangle are sloped.</param>
 public RightTriangle(BoundingRectangle bounds, RtSlopedSides slopedSides)
 {
     Bounds = bounds;
     SlopedSides = slopedSides;
 }