Small typo fix.

This commit is contained in:
Relintai 2022-03-13 16:41:10 +01:00
parent 840fef5041
commit b1a9ca27da
2 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ real_t vector2_distance_squared_to(const Vector2 *self, const Vector2 *p_vector2
} }
real_t vector2_angle_to(const Vector2 *self, const Vector2 *p_vector2) { real_t vector2_angle_to(const Vector2 *self, const Vector2 *p_vector2) {
return math_atan2f(cross(self, p_vector2), dot(self, p_vector2)); return math_atan2f(vector2_cross(self, p_vector2), vector2_dot(self, p_vector2));
} }
real_t vector2_angle_to_point(const Vector2 *self, const Vector2 *p_vector2) { real_t vector2_angle_to_point(const Vector2 *self, const Vector2 *p_vector2) {

View File

@ -96,8 +96,8 @@ void vector2_normalize(Vector2 *v);
Vector2 vector2_normalized(Vector2 v); Vector2 vector2_normalized(Vector2 v);
bool vector2_is_normalized(const Vector2 *v); bool vector2_is_normalized(const Vector2 *v);
real_t dot(const Vector2 *self, const Vector2 *p_other); real_t vector2_dot(const Vector2 *self, const Vector2 *p_other);
real_t cross(const Vector2 *self, const Vector2 *p_other); real_t vector2_cross(const Vector2 *self, const Vector2 *p_other);
real_t vector2_distance_to(const Vector2 *self, const Vector2 *p_vector2); real_t vector2_distance_to(const Vector2 *self, const Vector2 *p_vector2);
real_t vector2_distance_squared_to(const Vector2 *self, const Vector2 *p_vector2); real_t vector2_distance_squared_to(const Vector2 *self, const Vector2 *p_vector2);