Vectorized optoelectronic control and metrology in a semiconductor