From: "Todd S." Date: 2006-01-27T06:18:14+09:00 Subject: Re: Need a ruby math genius - potential ruby bug. I should have included the results... with the script run as is here is the output: ----------- prevVert Vector[-0.007794, -0.283622, 0.532219] curVert Vector[0.015525, -0.284744, 0.532219] nextVert Vector[0.017021, -0.256189, 0.52561] a: Vector[-0.023319, 0.00112200000000001, 0.0] b0: Vector[0.001496, 0.028555, -0.00660899999999998] l: Vector[-7.41529800000005e-06, -0.000154115270999999, -0.000667552557] l normalized: Vector[-0.0108228549457685, -0.224935966560048, -0.97431343866259] a normalized: Vector[-0.99884446633489, 0.0480596719939859, 0.0] b1: Vector[0.0468251842814566, 0.973187586683846, -0.225196188336926] b2: Vector[0.0468251842814566, 0.973187586683846, -0.225196188336926] matrix: Matrix[[-0.0108228549457685, -0.224935966560048, -0.97431343866259], [0.0468251842814566, 0.973187586683846, -0.225196188336926], [-0.99884446633489, 0.0480596719939859, 0.0]] mInverse: Matrix[[-128.0, -32.0, -0.99884446633489], [0.0, 2.0, 0.0480596719939859], [-0.97431343866259, -0.225196188336926, -1.20157827529705e-18]] With the variable "b2" commented out this is the ouput. Note the change in mInverse... ----------- prevVert Vector[-0.007794, -0.283622, 0.532219] curVert Vector[0.015525, -0.284744, 0.532219] nextVert Vector[0.017021, -0.256189, 0.52561] a: Vector[-0.023319, 0.00112200000000001, 0.0] b0: Vector[0.001496, 0.028555, -0.00660899999999998] l: Vector[-7.41529800000005e-06, -0.000154115270999999, -0.000667552557] l normalized: Vector[-0.0108228549457685, -0.224935966560048, -0.97431343866259] a normalized: Vector[-0.99884446633489, 0.0480596719939859, 0.0] b1: Vector[0.0468251842814566, 0.973187586683846, -0.225196188336926] matrix: Matrix[[-0.0108228549457685, -0.224935966560048, -0.97431343866259], [0.0468251842814566, 0.973187586683846, -0.225196188336926], [-0.99884446633489, 0.0480596719939859, 0.0]] mInverse: Matrix[[-64.0, -16.0, -0.99884446633489], [0.0, 1.0, 0.0480596719939859], [-0.97431343866259, -0.225196188336926, -2.40315655059409e-18]] incidentally, I believe both of these results are incorrect. -- Posted via http://www.ruby-forum.com/.