浏览代码

Update raymath.h (#1802)

pull/1805/head
isaac553876299 3 年前
committed by GitHub
父节点
当前提交
d1ac38171c
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/raymath.h

+ 1
- 1
src/raymath.h 查看文件

@ -326,7 +326,7 @@ RMDEF Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance)
float dy = target.y - v.y; float dy = target.y - v.y;
float value = (dx*dx) + (dy*dy); float value = (dx*dx) + (dy*dy);
if ((value == 0) || ((maxDistance >= 0) && (value <= maxDistance*maxDistance))) n">result = target;
if ((value == 0) || ((maxDistance >= 0) && (value <= maxDistance * maxDistance))) k">return target;
float dist = sqrtf(value); float dist = sqrtf(value);

正在加载...
取消
保存