Changeset 187 for trunk/UMap.pas


Ignore:
Timestamp:
Feb 17, 2018, 11:39:36 PM (7 years ago)
Author:
chronos
Message:
  • Added: TGPoint multiply operator to avoid FPC internal error.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMap.pas

    r177 r187  
    6464var
    6565  Shift: TPointF;
    66 begin
    67   Shift := TPointF.Create(0.5 * cos(30 / 180 * Pi), 0.5 * sin(30 / 180 * Pi));
     66  Angle: Double;
     67begin
     68  Angle := 30 / 180 * Pi;
     69  Shift := TPointF.Create(0.5, 0.5) * TPointF.Create(Cos(Angle), Sin(Angle));
    6870  SetLength(Result.Points, 6);
    6971  Result.Points[0] := TPoint.Create(Trunc(Pos.X + 0 * Size.X), Trunc(Pos.Y - 0.5 * Size.Y));
Note: See TracChangeset for help on using the changeset viewer.