using mathutils.geometry for point on edge detect