Rotated triangles not clipping correctly

I have a triangle positioned where I want it.

If I set it to a colour with full opacity (image was just for demonstrating) then set it as a mask it randomly moves.

So if I try and clip the shape I actually want to, it doesn't work.