コード例 #1
0
 public CylinderShape(CylinderShapeDescriptor descriptor)
 {
     WrappedCylinderShape = new global::DigitalRune.Geometry.Shapes.CylinderShape(descriptor.Radius,descriptor.Height);
     UserData = descriptor.UserData;
 }
コード例 #2
0
 public static ICylinderShape CreateCylinder(this IFactory<IShape> factory,
                                      CylinderShapeDescriptor descriptor)
 {
     return factory.Create<ICylinderShape, CylinderShapeDescriptor>(descriptor);
 }
コード例 #3
0
 public DefaultCylinderShape(CylinderShapeDescriptor descriptor)
 {
     Descriptor = descriptor;
 }