From 82810e3be897f434bc4cb41e4ad31eb9e384c384 Mon Sep 17 00:00:00 2001
From: BurksBuilds <92557438+BurksEngineering@users.noreply.github.com>
Date: Tue, 18 Apr 2023 11:27:06 -0400
Subject: [PATCH] v0.3.34
Cross product adjustments and optimizations
Implements #2
Implements #4
---
.../POUs/Functions/Vector3_CrossProduct.TcPOU | 26 ++++++++++++
TcTransform/TcTransform/POUs/Vector3.TcPOU | 16 +------
TcTransform/TcTransform/TcTransform.plcproj | 8 +++-
.../TcTransform/Version/Global_Version.TcGVL | 2 +-
.../TESTs/FB_Vector3_Test.TcPOU | 42 ++++++++++++++++++-
.../TcTransformTest/TcTransformTest.plcproj | 2 +-
6 files changed, 77 insertions(+), 19 deletions(-)
create mode 100644 TcTransform/TcTransform/POUs/Functions/Vector3_CrossProduct.TcPOU
diff --git a/TcTransform/TcTransform/POUs/Functions/Vector3_CrossProduct.TcPOU b/TcTransform/TcTransform/POUs/Functions/Vector3_CrossProduct.TcPOU
new file mode 100644
index 0000000..29e2f6d
--- /dev/null
+++ b/TcTransform/TcTransform/POUs/Functions/Vector3_CrossProduct.TcPOU
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TcTransform/TcTransform/POUs/Vector3.TcPOU b/TcTransform/TcTransform/POUs/Vector3.TcPOU
index 34b2634..2c077d0 100644
--- a/TcTransform/TcTransform/POUs/Vector3.TcPOU
+++ b/TcTransform/TcTransform/POUs/Vector3.TcPOU
@@ -79,14 +79,9 @@ GetReversed.Reverse();]]>
METHOD PUBLIC GetVector3CrossProduct : Vector3
VAR_INPUT
M_V : Vector3;
-END_VAR
-VAR
- Vs : ARRAY[0..1] OF POINTER TO Matrix;
END_VAR]]>
-
+
@@ -173,10 +168,7 @@ VAR
Vs : ARRAY[0..1] OF POINTER TO MATRIX;
END_VAR]]>
-
+
@@ -321,7 +313,6 @@ END_VAR
-
@@ -346,9 +337,6 @@ END_VAR
-
-
-
diff --git a/TcTransform/TcTransform/TcTransform.plcproj b/TcTransform/TcTransform/TcTransform.plcproj
index 5a46707..cadab8f 100644
--- a/TcTransform/TcTransform/TcTransform.plcproj
+++ b/TcTransform/TcTransform/TcTransform.plcproj
@@ -18,7 +18,7 @@
Burks Engineering
false
TcTransform
- 0.3.34
+ 0.3.36
{d5875a41-817d-44f3-8af7-6c59eaddc95f}
@@ -63,6 +63,7 @@
+
@@ -99,6 +100,9 @@
Code
+
+ Code
+
Code
@@ -119,7 +123,7 @@
- TcMatrix, 1.4.2 (Burks Engineering)
+ TcMatrix, 1.4.3 (Burks Engineering)
diff --git a/TcTransform/TcTransform/Version/Global_Version.TcGVL b/TcTransform/TcTransform/Version/Global_Version.TcGVL
index 3a108eb..eebfa9f 100644
--- a/TcTransform/TcTransform/Version/Global_Version.TcGVL
+++ b/TcTransform/TcTransform/Version/Global_Version.TcGVL
@@ -7,7 +7,7 @@
// This function has been automatically generated from the project information.
VAR_GLOBAL CONSTANT
{attribute 'const_non_replaced'}
- stLibVersion_TcTransform : ST_LibVersion := (iMajor := 0, iMinor := 3, iBuild := 34, iRevision := 0, nFlags := 0, sVersion := '0.3.34');
+ stLibVersion_TcTransform : ST_LibVersion := (iMajor := 0, iMinor := 3, iBuild := 36, iRevision := 0, nFlags := 0, sVersion := '0.3.36');
END_VAR
]]>
diff --git a/TcTransformTest/TcTransformTest/TESTs/FB_Vector3_Test.TcPOU b/TcTransformTest/TcTransformTest/TESTs/FB_Vector3_Test.TcPOU
index 89b234c..2e91819 100644
--- a/TcTransformTest/TcTransformTest/TESTs/FB_Vector3_Test.TcPOU
+++ b/TcTransformTest/TcTransformTest/TESTs/FB_Vector3_Test.TcPOU
@@ -13,6 +13,7 @@ END_VAR
@@ -61,6 +62,30 @@ Dot := V1.GetVector3DotProduct(V2);
// @TEST-ASSERT
AssertTrue(Dot = 14,'dot product did not work');
+TEST_FINISHED();]]>
+
+
+
+
+
+
@@ -117,7 +142,9 @@ TEST_FINISHED();]]>
-
+
+
+
@@ -145,6 +172,19 @@ TEST_FINISHED();]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TcTransformTest/TcTransformTest/TcTransformTest.plcproj b/TcTransformTest/TcTransformTest/TcTransformTest.plcproj
index 2f7fd0d..1418ed2 100644
--- a/TcTransformTest/TcTransformTest/TcTransformTest.plcproj
+++ b/TcTransformTest/TcTransformTest/TcTransformTest.plcproj
@@ -75,7 +75,7 @@
- TcMatrix, * (Burks Engineering)
+ TcMatrix, 1.4.3 (Burks Engineering)
TcUnit, * (www.tcunit.org)