We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c0a51e commit 3f3cb89Copy full SHA for 3f3cb89
3 files changed
docs/src/man/dcm.md
@@ -25,7 +25,7 @@ with the reference frame ``b`` is:
25
In **ReferenceFrameRotations.jl**, a DCM is a ``3 \times 3`` static matrix:
26
27
```julia
28
-DCM{T} = SMatrix{3,3,T,9}
+DCM{T} = SMatrix{3, 3, T, 9}
29
```
30
31
which means that `DCM` is immutable.
@@ -125,15 +125,15 @@ julia> orthonormalize(D)
125
0.0 1.0 0.0
126
0.0 0.0 1.0
127
128
-julia> D = DCM(1,1,2,2,3,3,4,4,5);
+julia> D = DCM(1, 1, 2, 2, 3, 3, 4, 4, 5);
129
130
julia> Dn = orthonormalize(D)
131
3×3 StaticArrays.SMatrix{3, 3, Float64, 9} with indices SOneTo(3)×SOneTo(3):
132
0.408248 0.123091 0.904534
133
0.408248 0.86164 -0.301511
134
0.816497 -0.492366 -0.301511
135
136
-julia> Dn*Dn'
+julia> Dn * Dn'
137
138
1.0 -2.87528e-16 -8.47673e-16
139
-2.87528e-16 1.0 3.31283e-16
docs/src/man/euler_angle_axis.md
@@ -78,12 +78,12 @@ the Euler angle of the result will always be in the interval ``[0, \pi]`` rad.
78
normalize the vector.
79
80
```jldoctest
81
-julia> ea1 = EulerAngleAxis(30 * pi / 180, [1.0;0.0;0.0])
+julia> ea1 = EulerAngleAxis(30 * pi / 180, [1.0, 0.0, 0.0])
82
EulerAngleAxis{Float64}:
83
Euler angle : 0.523599 rad (30.0°)
84
Euler axis : [1.0, 0.0, 0.0]
85
86
-julia> ea2 = EulerAngleAxis(60 * pi / 180, [1.0;0.0;0.0])
+julia> ea2 = EulerAngleAxis(60 * pi / 180, [1.0, 0.0, 0.0])
87
88
Euler angle : 1.0472 rad (60.0°)
89
docs/src/man/quaternions.md
@@ -388,7 +388,7 @@ julia> inv(q) # Computes the multiplicative inverse of the quaternion.
388
Quaternion{Float64}:
389
+ 0.0333333 - 0.0666667⋅i - 0.1⋅j - 0.133333⋅k
390
391
-julia> inv(q)*q
+julia> inv(q) * q
392
393
+ 1.0 + 0.0⋅i + 5.55112e-17⋅j + 0.0⋅k
394
@@ -413,7 +413,7 @@ julia> vect(q) # Returns the vectorial / imaginary part of the quaternion.
413
414
!!! note
415
416
- The operation `a/q` is equal to `a*inv(q)` if `a` is a scalar.
+ The operation `a / q` is equal to `a * inv(q)` if `a` is a scalar.
417
418
### Converting reference frames using quaternions
419
0 commit comments