Changeset 187
- Timestamp:
- Feb 17, 2018, 11:39:36 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UGeometry.pas
r186 r187 23 23 class operator LessThanOrEqual(const A, B: TGPoint<T>): Boolean; 24 24 class operator Equal(const A, B: TGPoint<T>): Boolean; 25 class operator Multiply(const A, B: TGPoint<T>): TGPoint<T>; 25 26 function Min(const A, B: TGPoint<T>): TGPoint<T>; 26 27 function Max(const A, B: TGPoint<T>): TGPoint<T>; … … 417 418 end; 418 419 420 class operator TGPoint<T>.Multiply(const A, B: TGPoint<T>): TGPoint<T>; 421 begin 422 Result.X := A.X * B.X; 423 Result.Y := A.Y * B.Y; 424 end; 425 419 426 class operator TGPoint<T>.GreaterThan(const A, B: TGPoint<T>): Boolean; 420 427 begin -
trunk/UMap.pas
r177 r187 64 64 var 65 65 Shift: TPointF; 66 begin 67 Shift := TPointF.Create(0.5 * cos(30 / 180 * Pi), 0.5 * sin(30 / 180 * Pi)); 66 Angle: Double; 67 begin 68 Angle := 30 / 180 * Pi; 69 Shift := TPointF.Create(0.5, 0.5) * TPointF.Create(Cos(Angle), Sin(Angle)); 68 70 SetLength(Result.Points, 6); 69 71 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.