mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with current master branch (03e6fbb)
This commit is contained in:
@@ -298,14 +298,14 @@ Returns a copy of this rectangle expanded to align the edges with the given ``to
|
||||
var rect = Rect2(0, 0, 5, 2)
|
||||
|
||||
rect = rect.expand(Vector2(10, 0)) # rect is Rect2(0, 0, 10, 2)
|
||||
rect = rect.expand(Vector2(-5, 5)) # rect is Rect2(-5, 0, 10, 5)
|
||||
rect = rect.expand(Vector2(-5, 5)) # rect is Rect2(-5, 0, 15, 5)
|
||||
|
||||
.. code-tab:: csharp
|
||||
|
||||
var rect = new Rect2(0, 0, 5, 2);
|
||||
|
||||
rect = rect.Expand(new Vector2(10, 0)); // rect is Rect2(0, 0, 10, 2)
|
||||
rect = rect.Expand(new Vector2(-5, 5)); // rect is Rect2(-5, 0, 10, 5)
|
||||
rect = rect.Expand(new Vector2(-5, 5)); // rect is Rect2(-5, 0, 15, 5)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user