- #1

- 16

- 0

Suppose you have a Square with the length of W

You also know the distance from the pink surface to the center of the square is X. The rotation of the square is theta. As shown in the picture above...

So the problem is: Is it possible to find how much of the pink is inside the square using X and theta using percentage? For example I know that if the rotation is 0, and the distance from the pink to the center of the cube is 0, it will be 50%(shown in the bottom picture)... However, when the angle changes, I do not know how to solve it....

So is this even possible? I have a feeling it is but its very complicated

ALSO, if it is possible, can you do this for a cube?

Thanks