Update Rect intersection documentation, and rename method on Mono

This commit is contained in:
Nathan Franke 2020-12-21 22:05:26 -06:00
parent 3dc52c2b6a
commit 3fda53c256
No known key found for this signature in database
GPG key ID: 92164DCCF3B1F723
4 changed files with 10 additions and 6 deletions

View file

@ -74,10 +74,11 @@ namespace Godot
/// <summary>
/// Returns the intersection of this Rect2 and `b`.
/// If the rectangles do not intersect, an empty Rect2 is returned.
/// </summary>
/// <param name="b">The other rect.</param>
/// <returns>The clipped rect.</returns>
public Rect2 Clip(Rect2 b)
/// <returns>The intersection of this Rect2 and `b`, or an empty rect if they do not intersect.</returns>
public Rect2 Intersection(Rect2 b)
{
var newRect = b;

View file

@ -69,10 +69,11 @@ namespace Godot
/// <summary>
/// Returns the intersection of this Rect2i and `b`.
/// If the rectangles do not intersect, an empty Rect2i is returned.
/// </summary>
/// <param name="b">The other rect.</param>
/// <returns>The clipped rect.</returns>
public Rect2i Clip(Rect2i b)
/// <returns>The intersection of this Rect2i and `b`, or an empty rect if they do not intersect.</returns>
public Rect2i Intersection(Rect2i b)
{
var newRect = b;