Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Need a ruby math genius - potential ruby bug.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Todd S., post: 4502856"] 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. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Need a ruby math genius - potential ruby bug.
Top