Does the phent_setmass()-function use this formular to calculate the mass of a box?:
code:
mass_amount = mass*height*width*length; //mass is a parameter of phent_setmass()
Posted By: Anonymous
Re: Mass-calculation - 06/20/03 03:35
The parameter you specify with phent_setmass is total mass, not density. I.e. A6 solves
code:
mass = density*height*width*length;
with mass being your parameter and density the unknown.
Posted By: kelly_b_c
Re: Mass-calculation - 06/21/03 00:55
when in doubt about a function, I always check the units.
For instance, your formula:
mass_amount = mass*height*width*length;
would produce:
mass_amount = kilograms*meters*meters*meters
or
mass_amount = kg*m^3 which is not a unit of mass
just something to always check when you are not sure. Unit analysis is a very powerful thing.