Corrected documented value for P (= -1!). Instead of repeating the assignment P=-1 in multiple internal functions, it might be advisable to define a class-wide parameter?
This commit is contained in:
parent
06f67ce500
commit
e6fe312f85
|
@ -20,7 +20,7 @@ class Quaternion:
|
||||||
Convention 4: Euler angle triplets are implemented using the Bunge convention,
|
Convention 4: Euler angle triplets are implemented using the Bunge convention,
|
||||||
with the angular ranges as [0, 2π],[0, π],[0, 2π]
|
with the angular ranges as [0, 2π],[0, π],[0, 2π]
|
||||||
Convention 5: the rotation angle ω is limited to the interval [0, π]
|
Convention 5: the rotation angle ω is limited to the interval [0, π]
|
||||||
Convention 6: P = 1 (as default)
|
Convention 6: P = -1 (as default)
|
||||||
|
|
||||||
w is the real part, (x, y, z) are the imaginary parts.
|
w is the real part, (x, y, z) are the imaginary parts.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue