remove code dependency on MathGeoLib