Beispiel #1
0
 public Drawing(DrawingSettings settings)
     : this(settings, new ReadOnlyTree <string, Layer>().Insert("0", new Layer("0")))
 {
 }
Beispiel #2
0
 /// <summary>
 /// Formats the specified angle as the appropriate format.
 /// </summary>
 public static string FormatAngle(this Drawing drawing, double value) => DrawingSettings.FormatAngle(value, drawing.Settings.AnglePrecision);
Beispiel #3
0
 /// <summary>
 /// Formats the specified scalar value as the appropriate format.
 /// </summary>
 public static string FormatScalar(this Drawing drawing, double value) => DrawingSettings.FormatUnits(value, UnitFormat.Metric, drawing.Settings.UnitPrecision);
Beispiel #4
0
 /// <summary>
 /// Formats the specified unit as the appropriate format.
 /// </summary>
 public static string FormatUnits(this Drawing drawing, double value) => DrawingSettings.FormatUnits(value, drawing.Settings.UnitFormat, drawing.Settings.UnitPrecision);