LazMapViewer: Deprecate also TRealPoint.Init in favour of TRealPoint.InitXY and TRealPoint.InitLatLon
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9299 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
d0103c8182
commit
f2e3491fa5
@ -85,7 +85,7 @@
|
||||
</SearchPaths>
|
||||
<Linking>
|
||||
<Debugging>
|
||||
<DebugInfoType Value="dsDwarf2Set"/>
|
||||
<DebugInfoType Value="dsDwarf3"/>
|
||||
</Debugging>
|
||||
<Options>
|
||||
<Win32>
|
||||
|
@ -39,7 +39,9 @@ Type
|
||||
function GetLatRad: Extended;
|
||||
procedure SetLatRad(AValue: Extended);
|
||||
public
|
||||
procedure Init(ALon, ALat: Double);
|
||||
procedure Init(ALon, ALat: Double); deprecated 'Use InitXY or InitLatLon';
|
||||
procedure InitXY(ALon, ALat: Double);
|
||||
procedure InitLatLon(ALat, ALon: Double);
|
||||
property LonRad: Extended read GetLonRad write SetLonRad;
|
||||
property LatRad: Extended read GetLatRad write SetLatRad;
|
||||
end;
|
||||
@ -242,6 +244,18 @@ begin
|
||||
Lat := ALat;
|
||||
end;
|
||||
|
||||
procedure TRealPoint.InitXY(ALon, ALat: Double);
|
||||
begin
|
||||
Lon := ALon;
|
||||
Lat := ALat;
|
||||
end;
|
||||
|
||||
procedure TRealPoint.InitLatLon(ALat, ALon: Double);
|
||||
begin
|
||||
Lat := ALat;
|
||||
Lon := ALon;
|
||||
end;
|
||||
|
||||
function TRealPoint.GetLonRad: Extended;
|
||||
begin
|
||||
Result := DegToRad(Self.Lon);
|
||||
|
Loading…
Reference in New Issue
Block a user