mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-22 12:09:50 +08:00
- Correction of the PdfLine's length formula;
- Moving Line to TextLine
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
"UglyToad.PdfPig.Content.Page",
|
"UglyToad.PdfPig.Content.Page",
|
||||||
"UglyToad.PdfPig.Content.PageSize",
|
"UglyToad.PdfPig.Content.PageSize",
|
||||||
"UglyToad.PdfPig.Content.Word",
|
"UglyToad.PdfPig.Content.Word",
|
||||||
"UglyToad.PdfPig.Content.Line",
|
"UglyToad.PdfPig.Content.TextLine",
|
||||||
"UglyToad.PdfPig.Content.TextDirection",
|
"UglyToad.PdfPig.Content.TextDirection",
|
||||||
"UglyToad.PdfPig.Core.TransformationMatrix",
|
"UglyToad.PdfPig.Core.TransformationMatrix",
|
||||||
"UglyToad.PdfPig.CrossReference.CrossReferenceTable",
|
"UglyToad.PdfPig.CrossReference.CrossReferenceTable",
|
||||||
|
@@ -17,7 +17,8 @@
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
decimal l = (Point1.X - Point1.X) * (Point1.X - Point1.X) + (Point1.Y - Point1.Y) * (Point1.Y - Point1.Y);
|
decimal l = (Point1.X - Point2.X) * (Point1.X - Point2.X) +
|
||||||
|
(Point1.Y - Point2.Y) * (Point1.Y - Point2.Y);
|
||||||
return (decimal)System.Math.Sqrt((double)l);
|
return (decimal)System.Math.Sqrt((double)l);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user