/// <summary> /// Creates a new P3Path with the shape of the rectangle specified by the given dimensions. /// </summary> /// <param name="x">The x-coordinate of the top left corner of the rectangle.</param> /// <param name="y">The y-coordinate of the top left corner of the rectangle.</param> /// <param name="width">The width of the rectangle.</param> /// <param name="height">The height of the rectangle.</param> /// <returns>The new PPath node.</returns> public static P3Path CreateRectangle(float x, float y, float width, float height) { P3Path result = new P3Path(); result.AddRectangle(x, y, width, height); result.Brush = Brushes.White; return(result); }
/// <summary> /// Creates a new P3Path with the shape of the rectangle specified by the given dimensions. /// </summary> /// <param name="x">The x-coordinate of the top left corner of the rectangle.</param> /// <param name="y">The y-coordinate of the top left corner of the rectangle.</param> /// <param name="width">The width of the rectangle.</param> /// <param name="height">The height of the rectangle.</param> /// <returns>The new PPath node.</returns> public static P3Path CreateRectangle(float x, float y, float width, float height) { P3Path result = new P3Path(); result.AddRectangle(x, y, width, height); result.Brush = Brushes.White; return result; }