public AffineMesh ToZoom(AffineZoom Zoom) { var n = new AffineMesh(); (from p in this.Points select p.Zoom(Zoom)).WithEach(n.Add); var v = new List<AffineVertex>(); (from k in this.Vertecies select 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 } ).WithEach(v.Add); n.Vertecies = v; return n; }
public AffineMesh ToZoom(AffineZoom Zoom) { var n = new AffineMesh(); (from p in this.Points select p.Zoom(Zoom)).WithEach(n.Add); var v = new List <AffineVertex>(); (from k in this.Vertecies select 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 } ).WithEach(v.Add); n.Vertecies = v; return(n); }
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 }); }