Changeset 240
- Timestamp:
- Sep 21, 2018, 1:19:30 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UClientGUI.pas
r238 r240 241 241 if Move.CountRepeat > 0 then Pen.Width := 2 242 242 else Pen.Width := 1; 243 Angle := ArcTan ((PosTo.Y - PosFrom.Y) / (PosTo.X - PosFrom.X));243 Angle := ArcTan2(PosTo.Y - PosFrom.Y, PosTo.X - PosFrom.X); 244 244 if (Angle > +Pi) or (Angle < -Pi) then 245 245 raise Exception.Create(Format(SWrongArrowAngle, [FloatToStr(Angle)])); 246 246 247 if Sign(PosTo.X - PosFrom.X) = -1 then Angle := Angle + Pi;248 247 ArrowCenter := View.CellToCanvasPos(TPoint.Create( 249 248 Trunc(PosFrom.X + (PosTo.X - PosFrom.X) / 2),
Note:
See TracChangeset
for help on using the changeset viewer.