瀏覽代碼

Update documentation for Vector2Angle (#4556)

pull/4561/head
Jonathan Akaba 2 週之前
committed by GitHub
父節點
當前提交
1b4e73cf2f
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      src/raymath.h

+ 3
- 2
src/raymath.h 查看文件

@ -328,8 +328,9 @@ RMAPI float Vector2DistanceSqr(Vector2 v1, Vector2 v2)
return result;
}
// Calculate angle between two vectors
// NOTE: Angle is calculated from origin point (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),
// positive angles appear clockwise, and negative angles appear counterclockwise.
RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
{
float result = 0.0f;

Loading…
取消
儲存