News for hackers. Stuff that matters.
Re:Ask HN: How to calculate if a box will fit through a hall... by niyazpk on Thursday May 21, 2009 @11:42AM (#620608)
According to the condition I previously provided, (sqrt(x^2+y^2) - l/2) should be greater than or equal to b for the box to fit through.

Here let us take h=66 since it will fit only that way in the corridor.

x = 31, y = 32

b = 22, l = 57, h =66

So (sqrt(x^2+y^2) - l/2) = 44.55 - 28.5 = 16.05

Now 16.05 is less than b(=22), so the box will not fit through.

There are no comments on this comment yet.