([x, y])
| 132 | const coord_y = [-coord_x[1], coord_x[0]]; |
| 133 | |
| 134 | function get_position([x, y]) { |
| 135 | return [ |
| 136 | flight_end_position[0] + coord_x[0] * x + coord_y[0] * y, |
| 137 | flight_end_position[1] + coord_x[1] * x + coord_y[1] * y |
| 138 | ]; |
| 139 | } |
| 140 | |
| 141 | const control_point_1_coord = get_position([260, 40]); |
| 142 | const control_point_2_coord = get_position([100, 40]); |