ruby-changes:29433
From: nobu <ko1@a...>
Date: Thu, 20 Jun 2013 16:52:25 +0900 (JST)
Subject: [ruby-changes:29433] nobu:r41485 (trunk): * remove trailing spaces.
nobu 2013-06-20 16:51:05 +0900 (Thu, 20 Jun 2013) New Revision: 41485 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41485 Log: * remove trailing spaces. Modified files: trunk/benchmark/bm_app_aobench.rb Index: benchmark/bm_app_aobench.rb =================================================================== --- benchmark/bm_app_aobench.rb (revision 41484) +++ benchmark/bm_app_aobench.rb (revision 41485) @@ -1,4 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/bm_app_aobench.rb#L1 -# 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 https://github.com/ruby/ruby/blob/trunk/benchmark/bm_app_aobench.rb#L79 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 https://github.com/ruby/ruby/blob/trunk/benchmark/bm_app_aobench.rb#L147 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 https://github.com/ruby/ruby/blob/trunk/benchmark/bm_app_aobench.rb#L203 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| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/