Distance from a point to the oval in the plane

(* Input: point T ∈ (ℝ^2), segment [μ,ν], radius r; 
Output: distance;
Submodules: dist[] *)

DGcir1[T_,Seg_,r_]:=Module[{},Return[Abs[seg[T,Seg]-r]]
                                             ];
DGcir[T_,Seg_,r_]:=Module[{},
(seg[T,Seg]^2-r^2)^2
                                             ];