コード例 #1
0
 public TriangleShape(TriangleShapeDescriptor descriptor)
 {
     WrappedTriangleShape = new global::DigitalRune.Geometry.Shapes.TriangleShape(descriptor.VertexA.ToDigitalRune(), 
                                               descriptor.VertexB.ToDigitalRune(), 
                                               descriptor.VertexC.ToDigitalRune());
     UserData = descriptor.UserData;
 }
コード例 #2
0
 public static ITriangleShape CreateTriangle(this IFactory<IShape> factory,
                                      TriangleShapeDescriptor descriptor)
 {
     return factory.Create<ITriangleShape, TriangleShapeDescriptor>(descriptor);
 }
コード例 #3
0
 public DefaultTriangleShape(TriangleShapeDescriptor descriptor)
 {
     Descriptor = descriptor;
 }