Translators in GA3H #29
-
Hello, I am trying to apply a translator to a point in GA3H as described in the following 3D Projective Geometric Algebra cheat sheet: This example code appears to work using ganja.js (
This outputs:
The GATL equivalent yields puzzling results:
This outputs:
The behavior of the rotor is as expected, but I'm not certain as to what is going on with the translator. Am I doing something incorrectly, or could this perhaps be a bug? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I believe the problem is the model of geometry used in both cases. I believe the problem is the model of geometry used in both cases. Please check if with Ganja you are using PGA while with GATL you are using the homogeneous model of geometry. The difference between the two is in the metric of space. With PGA The inclusion of PGA in GATL is on my to-do list. For now, you can declate the model following the example available at https://github.com/laffernandes/gatl/blob/master/cpp/tools/example/miscelaneos/general_metric.cpp For computational efficiency, replace expressions like |
Beta Was this translation helpful? Give feedback.
I believe the problem is the model of geometry used in both cases. I believe the problem is the model of geometry used in both cases.
Please check if with Ganja you are using PGA while with GATL you are using the homogeneous model of geometry. The difference between the two is in the metric of space. With PGA
e0 . e0 = 0
while in the homogenous modele0 . e0 = 1
. As a consequence of the metric, the homogeneous model does not have translators, only rotors.The inclusion of PGA in GATL is on my to-do list. For now, you can declate the model following the example available at https://github.com/laffernandes/gatl/blob/master/cpp/tools/example/miscelaneos/general_metric.cpp
For computational e…