refactored fuzzy_eq and lerp.