diff options
author | aoki1980taichi <[email protected]> | 2022-06-23 21:40:40 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-09-13 14:35:25 +0900 |
commit | 5894202365a80f027880129bcf51840534559237 (patch) | |
tree | 248e361d5d6d548012195dd45abafc1a89bae7f9 | |
parent | 3146cbbbc423c6995936b53b639f65a4b91881db (diff) |
typo otherBasis -> orthoBasis
The original function name in ao.c was orthoBasis.
I guess the function is generating orthonormal basis (https://en.wikipedia.org/wiki/Orthonormal_basis).
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6056
-rw-r--r-- | benchmark/app_aobench.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/app_aobench.rb b/benchmark/app_aobench.rb index 16296af12b..c1546e08ab 100644 --- a/benchmark/app_aobench.rb +++ b/benchmark/app_aobench.rb @@ -151,7 +151,7 @@ def clamp(f) i.to_i end -def otherBasis(basis, n) +def orthoBasis(basis, n) basis[2] = Vec.new(n.x, n.y, n.z) basis[1] = Vec.new(0.0, 0.0, 0.0) @@ -183,7 +183,7 @@ class Scene def ambient_occlusion(isect) basis = Array.new - otherBasis(basis, isect.n) + orthoBasis(basis, isect.n) ntheta = NAO_SAMPLES nphi = NAO_SAMPLES |