|
7 | 7 | rotation_angle = pi |
8 | 8 | rotation_center = SVector(0.0, 0.0) |
9 | 9 |
|
10 | | - motion = OscillatingMotion2D(frequency, translation_vector, rotation_angle, |
| 10 | + motion = OscillatingMotion2D(; frequency, translation_vector, rotation_angle, |
11 | 11 | rotation_center) |
12 | 12 | movement_function = motion.movement_function |
13 | 13 |
|
|
29 | 29 | rotation_angle = 0.0 |
30 | 30 | rotation_center = SVector(0.0, 0.0) |
31 | 31 |
|
32 | | - motion = OscillatingMotion2D(frequency, translation_vector, rotation_angle, |
| 32 | + motion = OscillatingMotion2D(; frequency, translation_vector, rotation_angle, |
33 | 33 | rotation_center) |
34 | 34 | movement_function = motion.movement_function |
35 | 35 |
|
|
47 | 47 | rotation_center = SVector(0.0, 0.0) |
48 | 48 | tspan = (0.4, 1.4) |
49 | 49 |
|
50 | | - motion = OscillatingMotion2D(frequency, translation_vector, rotation_angle, |
51 | | - rotation_center; tspan=tspan) |
| 50 | + motion = OscillatingMotion2D(; frequency, translation_vector, rotation_angle, |
| 51 | + rotation_center, tspan) |
52 | 52 | movement_function = motion.movement_function |
53 | 53 |
|
54 | 54 | @test isapprox(movement_function([0.0, 0.0], 0.4), [0.0, 0.0], atol=eps()) |
|
64 | 64 | rotation_angle = pi / 2 |
65 | 65 | rotation_center = SVector(0.0, 0.0) |
66 | 66 |
|
67 | | - motion = OscillatingMotion2D(frequency, translation_vector, rotation_angle, |
| 67 | + motion = OscillatingMotion2D(; frequency, translation_vector, rotation_angle, |
68 | 68 | rotation_center) |
69 | 69 | movement_function = motion.movement_function |
70 | 70 |
|
|
82 | 82 | rotation_center = SVector(0.0, 0.0) |
83 | 83 | rotation_phase_offset = 0.25 |
84 | 84 |
|
85 | | - motion = OscillatingMotion2D(frequency, translation_vector, rotation_angle, |
86 | | - rotation_center; |
87 | | - rotation_phase_offset=rotation_phase_offset) |
| 85 | + motion = OscillatingMotion2D(; frequency, translation_vector, rotation_angle, |
| 86 | + rotation_center, rotation_phase_offset) |
88 | 87 | movement_function = motion.movement_function |
89 | 88 |
|
90 | 89 | @test isapprox(movement_function([1.0, 0.0], 0.0), [0.0, -1.0], atol=eps()) |
|
101 | 100 | rotation_center = SVector(0.0, 0.0) |
102 | 101 | ramp_up_tspan = (0.0, 1.0) |
103 | 102 |
|
104 | | - motion = OscillatingMotion2D(frequency, translation_vector, rotation_angle, |
105 | | - rotation_center; |
106 | | - ramp_up_tspan=ramp_up_tspan) |
| 103 | + motion = OscillatingMotion2D(; frequency, translation_vector, rotation_angle, |
| 104 | + rotation_center, ramp_up_tspan) |
107 | 105 | movement_function = motion.movement_function |
108 | 106 |
|
109 | 107 | @test isapprox(movement_function([0.0, 0.0], 0.0), [0.0, 0.0], atol=eps()) |
|
126 | 124 | rotation_center = SVector(0.0, 0.0) |
127 | 125 | tspan = (0.5, 1.5) |
128 | 126 |
|
129 | | - motion = OscillatingMotion2D(frequency, translation_vector, rotation_angle, |
130 | | - rotation_center; |
131 | | - tspan=tspan) |
| 127 | + motion = OscillatingMotion2D(; frequency, translation_vector, rotation_angle, |
| 128 | + rotation_center, tspan) |
132 | 129 | ismoving = motion.is_moving |
133 | 130 |
|
134 | 131 | @test !ismoving(-0.5) |
|
0 commit comments