Beispiel #1
0
 /// <summary>
 /// Make a wedge along the given line element.
 /// </summary>
 /// <param name="element">the line element to use as the basic geometry</param>
 /// <param name="type">if the bond is dashed ,wedged, or "up_or_down", i.e., not defined</param>
 /// <param name="direction">the direction of the thickness</param>
 /// <param name="color">the color of the wedge</param>
 public WedgeLineElement(LineElement element, WedgeType type, BondDirection direction, Color color)
     : this(direction == BondDirection.ToFirst ? element.SecondPoint : element.FirstPoint,
            direction == BondDirection.ToFirst ? element.FirstPoint : element.SecondPoint,
            element.Width, type, direction, color)
 {
 }
Beispiel #2
0
 /// <summary>
 /// Make a wedge between the points (x1, y1) and (x2, y2) with a certain
 /// width, direction, dash, and color.
 /// </summary>
 /// <param name="firstPoint">the coordinate of the first point</param>
 /// <param name="secondPoint">the coordinate of the second point</param>
 /// <param name="width">the width of the wedge</param>
 /// <param name="type">the bond is dashed ,wedged, or "up_or_down", i.e., not defined.</param>
 /// <param name="direction">the direction of the thickness</param>
 /// <param name="color">the color of the wedge</param>
 public WedgeLineElement(Point firstPoint, Point secondPoint, double width, WedgeType type, BondDirection direction, Color color)
     : base(firstPoint, secondPoint, width, color)
 {
     this.BondType  = type;
     this.Direction = direction;
 }