本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
說明
登入
lolengine
/
lol
镜像来自
https://github.com/lolengine/lol
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
math: add distance() function for vectors.
undefined
Sam Hocevar
11 年之前
父節點
9df9440e67
當前提交
7d230d7674
共有
1 個檔案被更改
,包括
6 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
src/lol/math/vector.h
+ 6
- 0
src/lol/math/vector.h
查看文件
@@ -1283,6 +1283,12 @@ extern Quat<T> slerp(Quat<T> const &qa, Quat<T> const &qb, T f);
} \
\
tprefix \
inline type distance(tname<type> const &a, tname<type> const &b) \
{ \
return length(a - b); \
} \
\
tprefix \
inline tname<type> fract(tname<type> const &a) \
{ \
tname<type> ret; \
Write
Preview
Loading…
取消
儲存