If `b` and `B` are a `Cartesian3` and a `Matrix3`, respectively, you could change this to a dot product between `b` and the row of `B`.