mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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).
This commit is contained in:
parent
3146cbbbc4
commit
5894202365
Notes:
git
2024-09-13 05:35:42 +00:00
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue