public static Euclidean2d Parse(string s) { var x = s.NestedBracketSplitLevelOne().ToArray(); return(new Euclidean2d(Rot2d.Parse(x[0]), V2d.Parse(x[1]))); }
/// <summary> /// Parses Circle2d from a string created with Circle2d.ToString(). /// </summary> public static Circle2d Parse(string s) { var x = s.NestedBracketSplitLevelOne().ToArray(); return(new Circle2d(V2d.Parse(x[0]), double.Parse(x[1], CultureInfo.InvariantCulture))); }
public static Plane2d Parse(string s) { var x = s.NestedBracketSplitLevelOne().ToArray(); return(new Plane2d(V2d.Parse(x[0]), double.Parse(x[1]))); }