added planarity function to 2d checks

doesn’t work yet with 41.0.poly