Add another unit test for projections.
Improve clamp detection. Rename functions. Add references.
Update unit tests.