mirror of
https://github.com/Relintai/codot.git
synced 2025-04-22 05:41:17 +02:00
Small typo fix.
This commit is contained in:
parent
840fef5041
commit
b1a9ca27da
@ -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) {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user