Update function name

This commit is contained in:
JeremyStar™ 2024-03-25 21:10:59 +01:00
parent c79ac9f430
commit 54d81da32f
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ Converts an array into a string array.
If an item is found that is not of type `String`, an empty array is returned.
### *Array* <u>stringarray_to_array</u>(*Array[String]* array)
Converts a string array into an array.
### *Vector2* <u>center_object</u>(*Vector2* <u>parent_size</u>, *Vector2* <u>child_size</u>)
### *Vector2* <u>get_center</u>(*Vector2* <u>parent_size</u>, *Vector2* <u>child_size</u>)
Calculates the center of the child in the area of the parent.
Example:

View file

@ -80,5 +80,5 @@ func stringarray_to_array(array: Array[String]) -> Array:
return output
func center_object(parent_size: Vector2, child_size: Vector2) -> Vector2:
func get_center(parent_size: Vector2, child_size: Vector2) -> Vector2:
return Vector2(parent_size.x/2-child_size.x/2, parent_size.y/2-child_size.y/2)