mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
Update raymath.h
This commit is contained in:
@@ -328,9 +328,9 @@ RMAPI float Vector2DistanceSqr(Vector2 v1, Vector2 v2)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate the signed angle from v1 to v2, relative to the origin (0, 0).
|
// Calculate the signed angle from v1 to v2, relative to the origin (0, 0)
|
||||||
// NOTE: In Raylib's 2D coordinate system (positive X right, positive Y down),
|
// NOTE: Coordinate system convention: positive X right, positive Y down,
|
||||||
// positive angles appear clockwise, and negative angles appear counterclockwise.
|
// positive angles appear clockwise, and negative angles appear counterclockwise
|
||||||
RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
|
RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
|
||||||
{
|
{
|
||||||
float result = 0.0f;
|
float result = 0.0f;
|
||||||
|
Reference in New Issue
Block a user