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:
@@ -17,7 +17,8 @@
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user