ICylinderShape IFactoryOf <ICylinderShape, CylinderShapeDescriptor> .Create(CylinderShapeDescriptor descriptor) { var cylinderShape = new CylinderShape(descriptor); Store(cylinderShape.WrappedCylinderShape); return(cylinderShape); }
public static ICylinderShape CreateCylinder(this IFactory <IShape> factory, CylinderShapeDescriptor descriptor) { return(factory.Create <ICylinderShape, CylinderShapeDescriptor>(descriptor)); }
public CylinderShape(CylinderShapeDescriptor descriptor) { WrappedCylinderShape = new global::DigitalRune.Geometry.Shapes.CylinderShape(descriptor.Radius, descriptor.Height); UserData = descriptor.UserData; }
public DefaultCylinderShape(CylinderShapeDescriptor descriptor) { Descriptor = descriptor; }