| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 3 * Distributed under the terms of the GNU General Public License v2 | 3 * Distributed under the terms of the GNU General Public License v2 |
| 4 */ | 4 */ |
| 5 #ifndef _PLOT_H | 5 #ifndef _PLOT_H_ |
| 6 #define _PLOT_H 1 | 6 #define _PLOT_H_ 1 |
| 7 | 7 |
| 8 typedef struct point_s { | 8 typedef struct point_s { |
| 9 double x; | 9 double x; |
| 10 double y; | 10 double y; |
| 11 } point_s; | 11 } point_s; |
| 12 | 12 |
| 13 typedef struct rect_s { | 13 typedef struct rect_s { |
| 14 point_s min; | 14 point_s min; |
| 15 point_s max; | 15 point_s max; |
| 16 } rect_s; | 16 } rect_s; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 typedef struct vector_s { | 33 typedef struct vector_s { |
| 34 int n; | 34 int n; |
| 35 point_s *p; | 35 point_s *p; |
| 36 } vector_s; | 36 } vector_s; |
| 37 | 37 |
| 38 vector_s new_vector(int n); | 38 vector_s new_vector(int n); |
| 39 void vplot(graph_s *g, vector_s v, char c); | 39 void vplot(graph_s *g, vector_s v, char c); |
| 40 | 40 |
| 41 #endif | 41 #endif |
| OLD | NEW |