Large creatures flanking medium

flankingpathfinder-2e

Flanking says:

To flank a foe, you and your ally must be on opposite sides of the creature. A line drawn between the center of your space and the center of your ally's space must pass through opposite sides or opposite corners of the foe's space

It is all simple when medium creatures without reach are flanking Small or larger creatures.
Pink are the Large enemies, green the flanked Medium creature:

enter image description here

A is clear, the line between the centers goes through the sides
B is questionable, the line between the centers only touches the sides of the flanked creature's space, does not really go through them

So the question: is M flanked in case B?

Best Answer

Corners are part of the side

The rules for cover say:

Usually, the GM can quickly decide whether your target has cover. If you're uncertain or need to be more precise, draw a line from the center of your space to the center of the target's space. If that line passes through any terrain or object that would block the effect, the target has standard cover

There is an image to clarify cover. In this image, a line that passes through the corner of an obstacle is counted as crossing the obstacle (#3, below). So passing through the corner of something, here terrain or an object, or in the case of flanking a line, counts as passing through or crossing it.

Cover

Therefore, passing through the end corners of two opposite lines counts as passing through those lines, and the medium creature in both your examples is being flanked by the two large creatures.

(Given that these sort of questions have been plaguing us since pathfinder 1e at the very least, it is somehow baffling to me that the publishers of these systems cannot provide some more direct examples on it in the rules.)