MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / StringToPointF

Method StringToPointF

TexturedFontEditor/Helper.cs:55–66  ·  view source on GitHub ↗
(string Data)

Source from the content-addressed store, hash-verified

53 }
54
55 public static PointF StringToPointF(string Data)
56 {
57 string[] tRectArr = Data.Split(',');
58
59 if (tRectArr.Length != 2)
60 throw new Exception("格式不正确: 请确保为'x,y'.");
61
62 return new PointF(
63 Convert.ToSingle(tRectArr[0]),
64 Convert.ToSingle(tRectArr[1])
65 );
66 }
67
68 public static RectangleF StringToRectangleF(string Data)
69 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected