Here is my problem in a nutshell. I wanted to detect collisions between lots of different 2D and 3D shapes in a computer program. A lot of them are pretty simple shapes but I was hoping to maybe improve it a little. It occurred to me that I could use indicator functions to improve the collisions.
Suppose there are two objects f and g with indicator functions $f(x)$ and $g(x)$, where $x$ is a point. Basically the functions return 1 if is in the shape and $0$ if not.
I know that $1 - f(x)g(x)$ is the indicators function for the regions where there's isn't a collision. I wish rob find I find it $0$ anywhere. Seems like an iterative product might work but that's wouldn't work for a computer.
I'm looking for mathematics stance on this. Efficiency is only a concern in the sense that I need it to be performance.
Edit: In hindsight I cannot think of any situation in which the individual functions won't be piecewise continuous
You mean, is there any better strategy than checking every point $x \in G$ and see if the indicator function vanishes, e.g. $\chi(x) = 0$?
(Source: Wikipedia)
This would mean that you have extra information that would allow you to skip certain parts of $G$ from inspection.
There are techniques like bounding volumes and putting them into a spatial hierarchical order, that allow such short cuts.