Distance Function, Linear quasi connections and Chern Character