vector clamps and vector direction indexer.