The thread about 4D vision got me thinking about a fun little math problem. What is the perceived one-dimensional length (w) of a square as it is rotated? I know the minimum length will be the length of the square l and the max will be 2[sup]1/2[/sup]*ll. I work it out...
Yay. But now I have a problem. This works up to θ = π, but not past it because cosθ and sinθ start to become negative, meaning you get negative lengths. Is there any way I can restrict so I can have a nice function? All I have is:
w = l (|cosθ| + |sinθ|)
Also, try it for other shapes! I haven't been able to figure it out for triangles yet!
Code:
w = a + b b = sinθ * l a = cosθ * l w = cosθ * l + sinθ * l w = l (cosθ + sinθ)
Yay. But now I have a problem. This works up to θ = π, but not past it because cosθ and sinθ start to become negative, meaning you get negative lengths. Is there any way I can restrict so I can have a nice function? All I have is:
w = l (|cosθ| + |sinθ|)
Also, try it for other shapes! I haven't been able to figure it out for triangles yet!
Ban Jin!
Nobody really needs work when you have awesome. - xhuxus
Nobody really needs work when you have awesome. - xhuxus