- Timestamp:
- Mar 31, 2019, 8:47:40 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/opihi/cmd.data/spline_commands.c
r39457 r40662 93 93 } 94 94 95 int spline_print (int argc, char **argv) { 96 97 int i; 98 99 if (argc != 2) { 100 gprint (GP_ERR, "USAGE: spline print (name)\n"); 101 return FALSE; 102 } 103 104 Spline *myspline = FindSpline (argv[1]); 105 if (!myspline) { 106 gprint (GP_ERR, "spline %s not found\n", argv[1]); 107 return (FALSE); 108 } 109 110 for (i = 0; i < myspline->Nknots; i++) { 111 gprint (GP_LOG, "%lf : %lf : %lf\n", myspline->xk[i], myspline->yk[i], myspline->y2[i]); 112 } 113 114 return TRUE; 115 } 116 95 117 int spline_load (int argc, char **argv) { 96 118
Note:
See TracChangeset
for help on using the changeset viewer.
