Added missing method.

This commit is contained in:
Relintai 2023-05-27 13:36:38 +02:00
parent e08254b154
commit 1cadbeb735
2 changed files with 9 additions and 1 deletions

View File

@ -115,7 +115,6 @@ pandemonium_vector3i GDAPI pandemonium_vector3i_clamp(const pandemonium_vector3i
return dest; return dest;
} }
pandemonium_vector3i GDAPI pandemonium_vector3i_operator_add(const pandemonium_vector3i *p_self, const pandemonium_vector3i *p_b) { pandemonium_vector3i GDAPI pandemonium_vector3i_operator_add(const pandemonium_vector3i *p_self, const pandemonium_vector3i *p_b) {
pandemonium_vector3i raw_dest; pandemonium_vector3i raw_dest;
Vector3i *dest = (Vector3i *)&raw_dest; Vector3i *dest = (Vector3i *)&raw_dest;
@ -188,6 +187,13 @@ pandemonium_bool GDAPI pandemonium_vector3i_operator_less(const pandemonium_vect
return *self < *b; return *self < *b;
} }
pandemonium_vector3 GDAPI pandemonium_vector3i_to_vector3(const pandemonium_vector3i *p_self) {
pandemonium_vector3 dest;
const Vector3i *self = (const Vector3i *)p_self;
*((Vector3 *)&dest) = self->to_vector3();
return dest;
}
pandemonium_string GDAPI pandemonium_vector3i_as_string(const pandemonium_vector3i *p_self) { pandemonium_string GDAPI pandemonium_vector3i_as_string(const pandemonium_vector3i *p_self) {
pandemonium_string ret; pandemonium_string ret;
const Vector3i *self = (const Vector3i *)p_self; const Vector3i *self = (const Vector3i *)p_self;

View File

@ -101,6 +101,8 @@ pandemonium_vector3i GDAPI pandemonium_vector3i_operator_neg(const pandemonium_v
pandemonium_bool GDAPI pandemonium_vector3i_operator_equal(const pandemonium_vector3i *p_self, const pandemonium_vector3i *p_b); pandemonium_bool GDAPI pandemonium_vector3i_operator_equal(const pandemonium_vector3i *p_self, const pandemonium_vector3i *p_b);
pandemonium_bool GDAPI pandemonium_vector3i_operator_less(const pandemonium_vector3i *p_self, const pandemonium_vector3i *p_b); pandemonium_bool GDAPI pandemonium_vector3i_operator_less(const pandemonium_vector3i *p_self, const pandemonium_vector3i *p_b);
pandemonium_vector3 GDAPI pandemonium_vector3i_to_vector3(const pandemonium_vector3i *p_self);
pandemonium_string GDAPI pandemonium_vector3i_as_string(const pandemonium_vector3i *p_self); pandemonium_string GDAPI pandemonium_vector3i_as_string(const pandemonium_vector3i *p_self);
void GDAPI pandemonium_vector3i_new(pandemonium_vector3i *r_dest, const pandemonium_int p_x, const pandemonium_int p_y, const pandemonium_int p_z); void GDAPI pandemonium_vector3i_new(pandemonium_vector3i *r_dest, const pandemonium_int p_x, const pandemonium_int p_y, const pandemonium_int p_z);