Martin Diehl
7ff106a1fc
better readable
2019-09-20 08:45:23 -07:00
Martin Diehl
d69d57221d
consistent type handling and stronger encapsulation
...
components of quaternion are private now
qu is an array, not a quaterion (as in the python module). conceptually
cleaner because eu,ax,om, etc. are also plain array
2019-09-20 08:36:16 -07:00
Martin Diehl
76eaa9855f
correct type (pReal)
2019-09-20 06:57:39 -07:00
Martin Diehl
052ee10fcb
sanity checks as in python class
2019-09-20 06:53:49 -07:00
Martin Diehl
a70779965c
some helper functions for further transition
2019-09-19 22:50:30 -07:00
Martin Diehl
a94c104c75
using texture class
2019-09-19 19:14:37 -07:00
Martin Diehl
1b595b4864
initialize from Eulers (common case)
2019-06-12 15:58:21 +02:00
Martin Diehl
01e3b646c2
don't clutter the code with useless stuff
...
we only need to be more strict about prefixing
functions/subroutines/variables to see in which module they reside
2019-05-16 22:56:48 +02:00
Martin Diehl
fdd5b93e7c
avoid FPE exceptions
2019-04-17 15:19:41 +02:00
Martin Diehl
a6e6db0559
more stable/robust conversions
2019-04-17 12:52:48 +02:00
Martin Diehl
5d23a61fb0
same order as in the python module
...
... and only one "implicit none"
2019-04-16 22:17:56 +02:00
Martin Diehl
4724e42b7f
fixed indentation
2019-04-03 13:11:18 +02:00
Martin Diehl
3887d5631a
handling of PGI compiler was to cumbersome
2019-04-03 13:04:03 +02:00
Martin Diehl
1fb1032127
no pInt
2019-03-11 22:58:11 +01:00
Martin Diehl
96c4599dc7
norm2 is (yet) not available in PGI
2019-03-10 10:05:47 +01:00
Martin Diehl
3b8b83fbd9
FLOAT is not defined anymore
2019-03-07 22:18:29 +01:00
Martin Diehl
453f4556e5
bracket was missing
2019-02-04 00:12:27 +01:00
Martin Diehl
5320803842
bugfix: valid range for unit quaternion range is [-1,+1]
2019-02-04 00:06:38 +01:00
Martin Diehl
08009079ff
avoiding numerical errors (if quaternion norm is > 1.)
...
use consistently "self" instead of "this"
function for misorientation
2019-02-01 20:27:29 +01:00
Martin Diehl
feb87c7db8
same name as in the python module
2019-02-01 19:09:17 +01:00
Martin Diehl
11a509970b
some comments
2019-02-01 10:17:20 +01:00
Martin Diehl
53a95ea84f
cleaned and documented
2019-02-01 10:01:54 +01:00
Martin Diehl
5d6faff4d6
moving nice initializers to orientation
2018-12-08 15:44:00 +01:00
Martin Diehl
c1e5f66d77
make quaternion accesible
...
output as usual array to completly hide the internal representation
2018-12-08 13:03:27 +01:00
Martin Diehl
9686014ce0
polishing
2018-12-08 12:52:52 +01:00
Martin Diehl
40d38ebf55
added rotation conversions
...
modified versions from 3Drotations code (available on GitHub) by Marc De Graef
2018-12-08 08:02:55 +01:00