Oriented Measures With Continuous Densities and the Bang-bang Principle