-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (22 loc) · 722 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (22 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <ctime>
#include "trajectory.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
const char *output_filename = "route3.txt";
int width = 2000;
int height = 2000;
Trajectory* traj = create_trajectory(width, height);
add_trajectory_point(traj, 0, 0);
add_trajectory_point(traj, 300, 200);
add_trajectory_point(traj, 500, 150);
add_trajectory_point(traj, 700, 300);
add_trajectory_point(traj, 900, 250);
add_trajectory_point(traj, 1100, 400);
add_trajectory_point(traj, 1300, 350);
add_trajectory_point(traj, 1500, 500);
add_trajectory_point(traj, 1800, 450);
save_matrix_to_file(traj, output_filename);
free_trajectory(traj);
}