protected override RectD CalculateLocalBounds() { RectD localBounds = new RectD(double.PositiveInfinity, double.PositiveInfinity, double.NegativeInfinity, double.NegativeInfinity); this.RewindZero(); var vxs = this.MakeVxs(); int j = vxs.Count; for (int i = 0; i < j; ++i) { double x, y; vxs.GetVertexXY(i, out x, out y); localBounds.ExpandToInclude(x, y); } return(localBounds); throw new NotImplementedException(); }
protected override RectD CalculateLocalBounds() { RectD localBounds = new RectD(double.PositiveInfinity, double.PositiveInfinity, double.NegativeInfinity, double.NegativeInfinity); this.RewindZero(); VectorToolBox.GetFreeVxs(out VertexStore v1); this.MakeVxs(v1); int j = v1.Count; for (int i = 0; i < j; ++i) { double x, y; v1.GetVertexXY(i, out x, out y); localBounds.ExpandToInclude(x, y); } VectorToolBox.ReleaseVxs(ref v1); return(localBounds); throw new NotImplementedException(); }