summaryrefslogtreecommitdiff
path: root/lowlevelunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-02-05 10:24:57 +0100
committerErich Eckner <git@eckner.net>2016-02-05 10:24:57 +0100
commitc8a742990c6e54b916762bb996d40ac49bd10663 (patch)
tree01399f972b6e2ffb9dfba5e14874adb1dc947f89 /lowlevelunit.pas
parentf805884d7f17658fec112f94a8723efce9a6c8f1 (diff)
downloadunits-c8a742990c6e54b916762bb996d40ac49bd10663.tar.xz
t2x2ExtendedToStr neu in lowlevelunit.pas
Diffstat (limited to 'lowlevelunit.pas')
-rw-r--r--lowlevelunit.pas8
1 files changed, 8 insertions, 0 deletions
diff --git a/lowlevelunit.pas b/lowlevelunit.pas
index e7be518..a113835 100644
--- a/lowlevelunit.pas
+++ b/lowlevelunit.pas
@@ -75,6 +75,7 @@ function trimAll(s: string): string;
function erstesArgument(var s: string): string; overload; inline;
function erstesArgument(var s: string; Trenner: string): string; overload; inline;
function mydatetimetostr(t: tDateTime): string;
+function t2x2ExtendedToStr(p: t2x2Extended): string;
function tExtPointToStr(p: tExtPoint): string;
function tIntPointToStr(p: tIntPoint): string;
procedure fehler(s: string);
@@ -597,6 +598,13 @@ begin
result:=formatDateTime('YYYY.MM.DD_hh.mm.ss',t);
end;
+function t2x2ExtendedToStr(p: t2x2Extended): string;
+begin
+ result:=
+ floattostr(p['x','x'])+' .. '+floattostr(p['x','y'])+' x '+
+ floattostr(p['y','x'])+' .. '+floattostr(p['y','y']);
+end;
+
function tExtPointToStr(p: tExtPoint): string;
begin
result:=floattostr(p['x'])+';'+floattostr(p['y']);