summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-20 07:51:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-20 07:51:05 +0000
commit5dad18386e6409eea6821874f19109eed8e4667f (patch)
tree59ee1c6a01010de121d1ecf3c1d76e2dc5763ec1 /benchmark
parent5b4fe626216328563c6d5ccebacbe711b033fe10 (diff)
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bm_app_aobench.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/benchmark/bm_app_aobench.rb b/benchmark/bm_app_aobench.rb
index aa486ba959..4f15bbd2de 100644
--- a/benchmark/bm_app_aobench.rb
+++ b/benchmark/bm_app_aobench.rb
@@ -1,4 +1,4 @@
-# AO rebder benchmark
+# AO rebder benchmark
# Original program (C) Syoyo Fujita in Javascript (and other languages)
# http://lucille.atso-net.jp/blog/?p=642
# http://lucille.atso-net.jp/blog/?p=711
@@ -79,8 +79,8 @@ class Sphere
if t > 0.0 and t < isect.t then
isect.t = t
isect.hit = true
- isect.pl = Vec.new(ray.org.x + ray.dir.x * t,
- ray.org.y + ray.dir.y * t,
+ isect.pl = Vec.new(ray.org.x + ray.dir.x * t,
+ ray.org.y + ray.dir.y * t,
ray.org.z + ray.dir.z * t)
n = isect.pl.vsub(@center)
isect.n = n.vnormalize
@@ -147,9 +147,9 @@ class Isect
def t=(v); @t = v; end
def hit; @hit; end
def hit=(v); @hit = v; end
- def pl; @pl; end
+ def pl; @pl; end
def pl=(v); @pl = v; end
- def n; @n; end
+ def n; @n; end
def n=(v); @n = v; end
end
@@ -203,8 +203,8 @@ class Scene
eps = 0.0001
occlusion = 0.0
- p0 = Vec.new(isect.pl.x + eps * isect.n.x,
- isect.pl.y + eps * isect.n.y,
+ p0 = Vec.new(isect.pl.x + eps * isect.n.x,
+ isect.pl.y + eps * isect.n.y,
isect.pl.z + eps * isect.n.z)
nphi.times do |j|
ntheta.times do |i|