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