예제 #1
0
 public void Transform(ITransformer4D transformer, GraphicsConfig graphicsConfig)
 {
     if (this.nullable_0.HasValue)
     {
         this.nullable_0 = new Vector4D?(transformer.Transform(this.nullable_0.Value));
     }
     this.segment4D_0.Start = transformer.Transform(this.segment4D_0.Start);
     this.segment4D_0.End   = transformer.Transform(this.segment4D_0.End);
 }
예제 #2
0
파일: Class535.cs 프로젝트: 15831944/WW
 public void Transform(ITransformer4D transformer)
 {
     if (this.vector4D_0 == null)
     {
         return;
     }
     for (int index = 0; index < this.vector4D_0.Length; ++index)
     {
         this.vector4D_0[index] = transformer.Transform(this.vector4D_0[index]);
     }
 }
예제 #3
0
 public void Transform(ITransformer4D transformer, GraphicsConfig graphicsConfig)
 {
     if (this.polyline4D_0 != null)
     {
         for (int index = this.polyline4D_0.Count - 1; index >= 0; --index)
         {
             this.polyline4D_0[index] = transformer.Transform(this.polyline4D_0[index]);
         }
     }
     if (this.polyline4D_1 != null)
     {
         for (int index = this.polyline4D_1.Count - 1; index >= 0; --index)
         {
             this.polyline4D_1[index] = transformer.Transform(this.polyline4D_1[index]);
         }
     }
     this.vector4D_0 = transformer.Transform(this.vector4D_0);
     this.vector4D_1 = transformer.Transform(this.vector4D_1);
     this.vector4D_2 = transformer.Transform(this.vector4D_2);
 }
예제 #4
0
        public IShape4D GetFlattened(ITransformer4D transformer, double shapeFlattenEpsilon)
        {
            IList <Polyline4D> polylines = (IList <Polyline4D>) new List <Polyline4D>(this.ilist_0.Count);

            for (int index1 = 0; index1 < this.ilist_0.Count; ++index1)
            {
                Polyline4D polyline4D1 = this.ilist_0[index1];
                Polyline4D polyline4D2 = new Polyline4D(polyline4D1.Count, polyline4D1.Closed);
                for (int index2 = 0; index2 < polyline4D1.Count; ++index2)
                {
                    polyline4D2.Add(transformer.Transform(polyline4D1[index2]));
                }
                polylines.Add(polyline4D2);
            }
            return((IShape4D) new PolylineShape4D(polylines, this.bool_0));
        }
예제 #5
0
 public void Transform(ITransformer4D transformer, GraphicsConfig graphicsConfig)
 {
     this.vector4D_0 = transformer.Transform(this.vector4D_0);
     this.vector4D_1 = transformer.Transform(this.vector4D_1);
     this.vector4D_2 = transformer.Transform(this.vector4D_2);
 }
예제 #6
0
 public void Transform(ITransformer4D transformer)
 {
     this.vector4D_0 = transformer.Transform(this.vector4D_0);
 }