internal PdfRectangle(PdfVector topLeft, PdfVector topRight, PdfVector bottomLeft, PdfVector bottomRight) { TopLeft = topLeft.ToPoint(); TopRight = topRight.ToPoint(); BottomLeft = bottomLeft.ToPoint(); BottomRight = bottomRight.ToPoint(); }
internal PdfRectangle(PdfVector topLeft, PdfVector topRight, PdfVector bottomLeft, PdfVector bottomRight) { TopLeft = topLeft.ToPoint(); TopRight = topRight.ToPoint(); BottomLeft = bottomLeft.ToPoint(); BottomRight = bottomRight.ToPoint(); Width = bottomRight.Subtract(bottomLeft).GetMagnitude(); Height = topLeft.Subtract(bottomLeft).GetMagnitude(); Area = Width * Height; }
internal PdfRectangle(PdfVector topLeft, PdfVector topRight, PdfVector bottomLeft, PdfVector bottomRight) : this(topLeft.ToPoint(), topRight.ToPoint(), bottomLeft.ToPoint(), bottomRight.ToPoint()) { }