summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraoki1980taichi <[email protected]>2022-06-23 21:40:40 +0900
committerHiroshi SHIBATA <[email protected]>2024-09-13 14:35:25 +0900
commit5894202365a80f027880129bcf51840534559237 (patch)
tree248e361d5d6d548012195dd45abafc1a89bae7f9
parent3146cbbbc423c6995936b53b639f65a4b91881db (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.rb4
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