/// <summary> /// Appends the starting point to the end of /// <see cref="PolylineSvgNodeRenderer.points"/> /// if it is not already there. /// </summary> private void ConnectPoints() { if (points.Count < 2) { return; } Point start = points[0]; Point end = points[points.Count - 1]; if (JavaUtil.DoubleCompare(start.x, end.x) != 0 && JavaUtil.DoubleCompare(start.y, end.y) != 0) { points.Add(new Point(start.x, start.y)); } }
public override bool Equals(Object o) { if (this == o) { return(true); } if (o == null || GetType() != o.GetType()) { return(false); } iText.Kernel.Geom.AffineTransform that = (iText.Kernel.Geom.AffineTransform)o; return(JavaUtil.DoubleCompare(that.m00, m00) == 0 && JavaUtil.DoubleCompare(that.m10, m10) == 0 && JavaUtil.DoubleCompare (that.m01, m01) == 0 && JavaUtil.DoubleCompare(that.m11, m11) == 0 && JavaUtil.DoubleCompare(that.m02, m02) == 0 && JavaUtil.DoubleCompare(that.m12, m12) == 0); }
public override bool Equals(Object o) { if (this == o) { return(true); } if (o == null || GetType() != o.GetType()) { return(false); } iText.Kernel.Colors.Gradients.GradientColorStop that = (iText.Kernel.Colors.Gradients.GradientColorStop)o; return(JavaUtil.FloatCompare(that.opacity, opacity) == 0 && JavaUtil.DoubleCompare(that.offset, offset) == 0 && JavaUtil.DoubleCompare(that.hintOffset, hintOffset) == 0 && JavaUtil.ArraysEquals(rgb, that.rgb) && offsetType == that.offsetType && hintOffsetType == that.hintOffsetType); }
public override bool Equals(Object o) { return(this == o || o != null && GetType() == o.GetType() && JavaUtil.DoubleCompare(((iText.Kernel.Pdf.PdfNumber )o).value, value) == 0); }