Beispiel #1
0
        public AffineMesh ToZoom(AffineZoom Zoom)
        {
            var n = new AffineMesh();

            foreach (var p in this.Points)
            {
                n.Add(p.Zoom(Zoom));
            }

            var v = new List <AffineVertex>();

            foreach (var k in this.Vertecies)
            {
                var kn = new AffineVertex
                {
                    Element       = k.Element,
                    ElementWidth  = k.ElementWidth,
                    ElementHeight = k.ElementHeight,
                    A             = k.A.Zoom(Zoom),
                    B             = k.B.Zoom(Zoom),
                    C             = k.C.Zoom(Zoom),
                    //Tag = k.Tag
                };

                v.Add(kn);
            }

            n.Vertecies = v;


            return(n);
        }
Beispiel #2
0
 public static AffinePoint Zoom(this AffinePoint p, AffineZoom Zoom)
 {
     return(new AffinePoint
     {
         X = p.X * Zoom.X,
         Y = p.Y * Zoom.Y,
         Z = p.Z * Zoom.Z,
         Tag = p.Tag
     });
 }