|
10 | 10 | ######################### |
11 | 11 |
|
12 | 12 | for axis in [:X, :Y, :Z] |
13 | | - RotType = Symbol("Rot" * string(axis)) |
| 13 | + RotType = Symbol(:Rot, axis) |
14 | 14 | @eval begin |
15 | 15 | struct $RotType{T} <: Rotation{3,T} |
16 | 16 | theta::T |
@@ -203,11 +203,11 @@ end |
203 | 203 | ###################### |
204 | 204 |
|
205 | 205 | for axis1 in [:X, :Y, :Z] |
206 | | - Rot1Type = Symbol("Rot" * string(axis1)) |
| 206 | + Rot1Type = Symbol(:Rot, axis1) |
207 | 207 | for axis2 in filter(axis -> axis != axis1, [:X, :Y, :Z]) |
208 | | - Rot2Type = Symbol("Rot" * string(axis2)) |
209 | | - RotType = Symbol("Rot" * string(axis1) * string(axis2)) |
210 | | - InvRotType = Symbol("Rot" * string(axis2) * string(axis1)) |
| 208 | + Rot2Type = Symbol(:Rot, axis2) |
| 209 | + RotType = Symbol(:Rot, axis1, axis2) |
| 210 | + InvRotType = Symbol(:Rot, axis2, axis1) |
211 | 211 |
|
212 | 212 | @eval begin |
213 | 213 | struct $RotType{T} <: Rotation{3,T} |
@@ -474,20 +474,20 @@ end |
474 | 474 | ######################## |
475 | 475 |
|
476 | 476 | for axis1 in [:X, :Y, :Z] |
477 | | - Rot1Type = Symbol("Rot" * string(axis1)) |
| 477 | + Rot1Type = Symbol(:Rot, axis1) |
478 | 478 | for axis2 in filter(axis -> axis != axis1, [:X, :Y, :Z]) |
479 | | - Rot2Type = Symbol("Rot" * string(axis2)) |
480 | | - Rot12Type = Symbol("Rot" * string(axis1) * string(axis2)) |
| 479 | + Rot2Type = Symbol(:Rot, axis2) |
| 480 | + Rot12Type = Symbol(:Rot, axis1, axis2) |
481 | 481 | for axis3 in filter(axis -> axis != axis2, [:X, :Y, :Z]) |
482 | | - Rot3Type = Symbol("Rot" * string(axis3)) |
483 | | - Rot23Type = Symbol("Rot" * string(axis2) * string(axis3)) |
484 | | - Rot13Type = Symbol("Rot" * string(axis1) * string(axis3)) |
485 | | - RotType = Symbol("Rot" * string(axis1) * string(axis2) * string(axis3)) |
486 | | - InvRotType = Symbol("Rot" * string(axis3) * string(axis2) * string(axis1)) |
| 482 | + Rot3Type = Symbol(:Rot, axis3) |
| 483 | + Rot23Type = Symbol(:Rot, axis2, axis3) |
| 484 | + Rot13Type = Symbol(:Rot, axis1, axis3) |
| 485 | + RotType = Symbol(:Rot, axis1, axis2, axis3) |
| 486 | + InvRotType = Symbol(:Rot, axis3, axis2, axis1) |
487 | 487 |
|
488 | 488 | # Note that axis0 is used only if axis1==axis3 |
489 | 489 | axis0 = setdiff!([:X, :Y, :Z], [axis1, axis2])[1] |
490 | | - Rot0Type = Symbol("Rot" * string(axis0)) |
| 490 | + Rot0Type = Symbol(:Rot, axis0) |
491 | 491 |
|
492 | 492 | @eval begin |
493 | 493 | struct $RotType{T} <: Rotation{3,T} |
|
0 commit comments