Simple vector math for use in caustic.