You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Rename Rect2 and Rect2i clip() to intersection()
This commit is contained in:
@@ -90,11 +90,11 @@ godot_bool GDAPI godot_rect2_has_no_area(const godot_rect2 *p_self) {
|
||||
return self->has_no_area();
|
||||
}
|
||||
|
||||
godot_rect2 GDAPI godot_rect2_clip(const godot_rect2 *p_self, const godot_rect2 *p_b) {
|
||||
godot_rect2 GDAPI godot_rect2_intersection(const godot_rect2 *p_self, const godot_rect2 *p_b) {
|
||||
godot_rect2 dest;
|
||||
const Rect2 *self = (const Rect2 *)p_self;
|
||||
const Rect2 *b = (const Rect2 *)p_b;
|
||||
*((Rect2 *)&dest) = self->clip(*b);
|
||||
*((Rect2 *)&dest) = self->intersection(*b);
|
||||
return dest;
|
||||
}
|
||||
|
||||
@@ -233,11 +233,11 @@ godot_bool GDAPI godot_rect2i_has_no_area(const godot_rect2i *p_self) {
|
||||
return self->has_no_area();
|
||||
}
|
||||
|
||||
godot_rect2i GDAPI godot_rect2i_clip(const godot_rect2i *p_self, const godot_rect2i *p_b) {
|
||||
godot_rect2i GDAPI godot_rect2i_intersection(const godot_rect2i *p_self, const godot_rect2i *p_b) {
|
||||
godot_rect2i dest;
|
||||
const Rect2i *self = (const Rect2i *)p_self;
|
||||
const Rect2i *b = (const Rect2i *)p_b;
|
||||
*((Rect2i *)&dest) = self->clip(*b);
|
||||
*((Rect2i *)&dest) = self->intersection(*b);
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
||||
@@ -3573,7 +3573,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "godot_rect2_clip",
|
||||
"name": "godot_rect2_intersection",
|
||||
"return_type": "godot_rect2",
|
||||
"arguments": [
|
||||
["const godot_rect2 *", "p_self"],
|
||||
@@ -3715,7 +3715,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "godot_rect2i_clip",
|
||||
"name": "godot_rect2i_intersection",
|
||||
"return_type": "godot_rect2i",
|
||||
"arguments": [
|
||||
["const godot_rect2i *", "p_self"],
|
||||
|
||||
@@ -80,7 +80,7 @@ godot_bool GDAPI godot_rect2_encloses(const godot_rect2 *p_self, const godot_rec
|
||||
|
||||
godot_bool GDAPI godot_rect2_has_no_area(const godot_rect2 *p_self);
|
||||
|
||||
godot_rect2 GDAPI godot_rect2_clip(const godot_rect2 *p_self, const godot_rect2 *p_b);
|
||||
godot_rect2 GDAPI godot_rect2_intersection(const godot_rect2 *p_self, const godot_rect2 *p_b);
|
||||
|
||||
godot_rect2 GDAPI godot_rect2_merge(const godot_rect2 *p_self, const godot_rect2 *p_b);
|
||||
|
||||
@@ -123,7 +123,7 @@ godot_bool GDAPI godot_rect2i_encloses(const godot_rect2i *p_self, const godot_r
|
||||
|
||||
godot_bool GDAPI godot_rect2i_has_no_area(const godot_rect2i *p_self);
|
||||
|
||||
godot_rect2i GDAPI godot_rect2i_clip(const godot_rect2i *p_self, const godot_rect2i *p_b);
|
||||
godot_rect2i GDAPI godot_rect2i_intersection(const godot_rect2i *p_self, const godot_rect2i *p_b);
|
||||
|
||||
godot_rect2i GDAPI godot_rect2i_merge(const godot_rect2i *p_self, const godot_rect2i *p_b);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user