This commit deduplicates the code for: - Creating local projection matrix; - Creating local clip planes; - Testing BoundBox snap distance. These common codes are repeated for each type of object (Empty, Camera, Armature, Curve, Mesh, Editmesh...). Now they have been unified in the creation of `Nearest2dUserData`.