camcontroller: save one matrix allocation and one matrix multiplication.