- Timestamp:
- Nov 23, 2017, 10:21:49 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UGeometry.pas
r168 r169 34 34 35 35 TPolygon = record 36 private 37 function GetPoint(const Index: Integer): TPoint; inline; 38 procedure SetPoint(const Index: Integer; const AValue: TPoint); inline; 39 public 36 40 Points: TPointArray; 37 41 function IsPointInside(const P: TPoint): Boolean; … … 42 46 procedure Clear; 43 47 procedure CutLine(const Vector: TLine; const PointInside: TPoint); 48 property Items[Index: Integer]: TPoint read GetPoint write SetPoint; default; 44 49 end; 45 50 … … 236 241 237 242 { TPolygon } 243 244 function TPolygon.GetPoint(const Index: Integer): TPoint; 245 begin 246 Result := Points[Index]; 247 end; 248 249 procedure TPolygon.SetPoint(const Index: Integer; const AValue: TPoint); 250 begin 251 Points[Index] := AValue; 252 end; 238 253 239 254 function TPolygon.IsPointInside(const P: TPoint): Boolean;
Note:
See TracChangeset
for help on using the changeset viewer.