## Calculate size on different distances

Feb 26 2012 | 9:09 pm

Hi,
I'm working on a patch which uses z-axis information (depth) to calculate the size of an object.

For instance an object has a width of 300 units (pixels) at 3000 units (mm) distance. The same object has a width of 400 units as 2000 units distance. With these statics I should be able to calculate the size at 2500 units distance (using a formula). I know for many of you this is basic math, but I just can't figure it out without using too many [scale] objects

And yes, I posted this in MaxMSP on purpose, since this is done without jitter.

Thank you for any lead.