Exemplo n.º 1
0
 public LineSegmentShape(LineSegmentShapeDescriptor descriptor)
 {
     WrappedLineSegmentShape = new global::DigitalRune.Geometry.Shapes.LineSegmentShape(descriptor.StartPoint.ToDigitalRune(),
                                                     descriptor.EndPoint.ToDigitalRune());
     UserData = descriptor.UserData;
 }
Exemplo n.º 2
0
 public static ILineSegmentShape CreateLineSegment(this IFactory<IShape> factory,
                                      LineSegmentShapeDescriptor descriptor)
 {
     return factory.Create<ILineSegmentShape, LineSegmentShapeDescriptor>(descriptor);
 }
 public DefaultLineSegmentShape(LineSegmentShapeDescriptor descriptor)
 {
     Descriptor = descriptor;
 }