Let’s assume I have a position (x|y) on a grid and I want to move to the next cell with the direction (a|b). The next cell would be at the position (x + a|y + b).
But how would I calculate the cells at the left and right side from my current position?
If your movements are not cardinal, and both A and B are non-zero when moving forward (it isn’t clear that this is the case based on your post, as references to ‘cells’ are usually in the context of grid-based movement), then the easiest way to get the perpendicular directions is by getting the cross product of (A,B) and Vector3.forward/back (assuming an XY oriented grid).
Vector3 direction = Vector3.Cross( AB, Vector3.forward );