moved planar sampling implementation to space2d