public static Real Distance(Real x0, Real z0, Real x1, Real z1) { var dx = x0 - x1; var dz = z0 - z1; return(Real.Sqrt(dx * dx + dz * dz)); }
public Real Length() { return(Real.Sqrt(X * X + Z * Z)); }