private static void smethod_2(GeneralShape2D result, double halfSize) { result.MoveTo(-halfSize, 0.0); result.LineTo(halfSize, 0.0); result.MoveTo(0.0, -halfSize); result.LineTo(0.0, halfSize); }
private static void smethod_3(GeneralShape2D result, double halfSize) { double num = 0.5 * System.Math.Sqrt(2.0) * halfSize; result.MoveTo(-num, -num); result.LineTo(num, num); result.MoveTo(num, -num); result.LineTo(-num, num); }
private static IShape2D smethod_11(Stream stream, byte[] buffer) { GeneralShape2D generalShape2D = new GeneralShape2D(); int num; while (true) { num = stream.ReadByte(); if (num >= 0) { WoutWareFont.Enum11 enum11 = (WoutWareFont.Enum11)num; if ((uint)enum11 <= 46U) { if (enum11 != WoutWareFont.Enum11.const_5) { if (enum11 == WoutWareFont.Enum11.const_4) { generalShape2D.Close(); } else { goto label_15; } } else { goto label_12; } } else { switch (enum11) { case WoutWareFont.Enum11.const_3: Point2D p1_1 = WoutWareFont.smethod_9(stream, buffer); Point2D p2_1 = WoutWareFont.smethod_9(stream, buffer); Point2D p3 = WoutWareFont.smethod_9(stream, buffer); generalShape2D.CubicTo(p1_1, p2_1, p3); continue; case WoutWareFont.Enum11.const_1: Point2D p1 = WoutWareFont.smethod_9(stream, buffer); generalShape2D.LineTo(p1); continue; case WoutWareFont.Enum11.const_0: Point2D p2 = WoutWareFont.smethod_9(stream, buffer); generalShape2D.MoveTo(p2); continue; case WoutWareFont.Enum11.const_2: Point2D p1_2 = WoutWareFont.smethod_9(stream, buffer); Point2D p2_2 = WoutWareFont.smethod_9(stream, buffer); generalShape2D.QuadTo(p1_2, p2_2); continue; default: goto label_15; } } } else { break; } } throw new IOException("Unexpected end of input!"); label_12: if (generalShape2D.HasSegments) { generalShape2D.ShrinkWrap(); } else { generalShape2D = (GeneralShape2D)null; } return((IShape2D)generalShape2D); label_15: throw new IOException("Invalid path operator " + (object)num); }