示例#1
0
 public Trapezium(Angle angle, params float[] values): this()
 {
     var first = Factory.newLine(values[0], values[1], values[2], values[3]);
     float parallelLineDeviation = 30f;
     float parallelLineSizeDifference = 0;
     if (values.Length < 6)
         parallelLineDeviation = values[4];
     if (values.Length > 5)
         parallelLineSizeDifference = values[5];
     Data = Geometry.GetTrapeziumData(first, parallelLineDeviation, angle, StrokeMode.Outer, parallelLineSizeDifference);
     ID = Factory.NewID(Name);
 }
示例#2
0
 Trapezium(TrapeziumData data, string id) 
 {
     ID = id;
     Data = data;
 }
示例#3
0
 public Trapezium(ILine first, float parallelLineDeviation, float parallelLineSizeDifference = 0, Angle angle = default(Angle)) : this()
 {
     Data = Geometry.GetTrapeziumData(first, parallelLineDeviation, angle, StrokeMode.Outer, parallelLineSizeDifference);
     ID = Factory.NewID(Name);
 }