summaryrefslogtreecommitdiff
path: root/matheunit.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-07-10 21:09:36 +0200
committerErich Eckner <git@eckner.net>2023-07-10 21:09:36 +0200
commit2ae1241f94bd1223cc4b8d63c7c5494d483252b3 (patch)
treed9f53e8b0d938d1a1e6d28631742166d205901c6 /matheunit.pas
parent1575af3fed5f6e312c9e4c84cffc74eb50d4ed36 (diff)
downloadunits-2ae1241f94bd1223cc4b8d63c7c5494d483252b3.tar.xz
matheunit.pas: rotations-EinsenHEADmaster
Diffstat (limited to 'matheunit.pas')
-rw-r--r--matheunit.pas17
1 files changed, 17 insertions, 0 deletions
diff --git a/matheunit.pas b/matheunit.pas
index a5163c8..30bb7ce 100644
--- a/matheunit.pas
+++ b/matheunit.pas
@@ -69,6 +69,8 @@ function ermittleAnstieg(dat: string; xSpalte,ySpalte: longestOrdinal): extended
function ermittleMittelwert(dat: string; werteSpalte,gewichteSpalte: longestOrdinal): extended;
procedure sortiereNachWert(var maxima: tLongintArray; werte: tExtendedArray; logarithmischesPivot: boolean);
procedure sortiereNachDominanz(var maxima: tLongintArray; werte: tExtendedArray; nullteSpektrometerordnung: extended);
+function RotationsMatrix(alpha: extended): t2x2Extended;
+function einheitsVektor(alpha: extended): tExtPoint;
implementation
@@ -1251,5 +1253,20 @@ begin
setLength(dominanzen,0);
end;
+function RotationsMatrix(alpha: extended): t2x2Extended;
+begin
+ result:=_2x2Extended(
+ cos(alpha),-sin(alpha),
+ sin(alpha), cos(alpha)
+ )
+end;
+
+function einheitsVektor(alpha: extended): tExtPoint;
+begin
+ result:=extPoint(
+ cos(alpha),sin(alpha)
+ );
+end;
+
end.