using System;
using System.Collections.Generic;
using System.Linq;
namespace EuclideanDistance
{
///
/// String extensions.
///
public static class StringExtensions
{
///
/// Tos the point.
///
///
/// The point.
///
///
/// Input.
///
public static IEnumerable ToPoint(this string input)
{
return string.IsNullOrWhiteSpace(input)
? null
: input.Split(new char[] { ',' }).Select(Double.Parse);
}
}
}