Skip to main content
gamedev.net
🔒 Locked

Finding extensions?

Started by Spintwo Mar 24, 2004 at 8:37 AM 0 replies 300+ views
Original Post
Spintwo
Spintwo
How do you find how much of an increase with the total product, say the volume of a cube, become if you increase/decrease certain dimensions? I know how to do it if you add/subtract a length, just put it into binomial form and multiply it out subtracting the original. How do you do this with multiplication? I''m writing a trivia program which more focuses on math and just random questions that nobody should know!
Charles Hwang -aka oatmeal.net [Maxedge My Site(UC)|E-mail|NeXe|NeHe|SDL] [Google|Dev-C++|GDArticles|C++.com|MSDN]
Paradigm Shifter
Paradigm Shifter
Let l,m,n be the scale factor applied to x,y,z so

new x = lx
new y = my
new z = nz

then new volume = lx*my*nz
so change of volume is lx*my*nz - x*y*z i.e. lmn - 1 times the original volume (increase).

So doubling all lengths gives 8-1 = 7 original increase, which is correct because 2*2*2 = 8 = 7+1

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley
"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.