It is given that the intensity of certain point is given by where is a constant and is the point-point distance.
As the fence has height , assume that we are going to illuminate certain slice with area , the illumination is given by . The question asks about where is the area illuminated by the lamp.
The problem is not difficult to solve but, you need to deal with calculus.
Imagine a lamp point shines on a fence segment with height .
Case I: 's projection, is on
Let the point to segment distance be . Now that we are going to calculate the intensity of .
By trigonometry,
By Pythagors' Theorem,
Therefore,
By integration,
Note that .
Therefore the total intensity of shines on is given by
You may see that the result is simply dealing with the included angle between the light source and the fence segment.
Case 2: 's projection, is not on
By case 1, the result still holds (Just complement angle only).
Since the inclination of the fence to the lamp does not matter, the final conclusion is that: from the point of view of the lamp, how much angle the polygon is inclined to it, the result is simply by using the above equation.
Be careful:
- Use acos(-1) instead of pasting constant from wiki as
- Determine if a point is inside a general polygon
- Even though the point is outside the polygon, the view angle can still be
沒有留言:
張貼留言