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); }
Trapezium(TrapeziumData data, string id) { ID = id; Data = data; }
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); }