linogram_usage (const char *program)
{
std::cout << "usage: " << fileBasename(program) << " n d [OPTIONS]\n";
linogram_usage (const char *program)
{
std::cout << "usage: " << fileBasename(program) << " n d [OPTIONS]\n";
while (1)
{
int c = getopt_long (argc, argv, "", my_options, NULL);
while (1)
{
int c = getopt_long (argc, argv, "", my_options, NULL);
for (m = 0; m < size; m++) {
double step = d * cos(theta_vec[m]);
for (int id = min; id <= max; id++) {
for (m = 0; m < size; m++) {
double step = d * cos(theta_vec[m]);
for (int id = min; id <= max; id++) {
- double r = id * step;
- double x = r * cos(theta_vec[m] + theta_base);
- double y = r * sin(theta_vec[m] + theta_base);
- printf ("%lf,%lf ", x, y);
+ double r = id * step;
+ double x = r * cos(theta_vec[m] + theta_base);
+ double y = r * sin(theta_vec[m] + theta_base);
+ printf ("%lf,%lf ", x, y);
for (m = 0; m < size; m++) {
double step = d * cos(theta_vec[m]);
for (int id = min; id <= max; id++) {
for (m = 0; m < size; m++) {
double step = d * cos(theta_vec[m]);
for (int id = min; id <= max; id++) {
- double r = id * step;
- double x = r * cos(theta_vec[m] + PI/2 + theta_base);
- double y = r * sin(theta_vec[m] + PI/2 + theta_base);
- printf ("%lf,%lf ", x, y);
+ double r = id * step;
+ double x = r * cos(theta_vec[m] + PI/2 + theta_base);
+ double y = r * sin(theta_vec[m] + PI/2 + theta_base);
+ printf ("%lf,%lf ", x, y);
- if (opt_polar_rt)
- printf ("%lf,", theta_vec[m] + theta_base);
- printf ("%lf ", id * step);
+ if (opt_polar_rt)
+ printf ("%lf,", theta_vec[m] + theta_base);
+ printf ("%lf ", id * step);
- if (opt_polar_rt)
- printf ("%lf,", theta_vec[m] + PI/2 + theta_base);
- printf ("%lf ", id * step);
+ if (opt_polar_rt)
+ printf ("%lf,", theta_vec[m] + PI/2 + theta_base);
+ printf ("%lf ", id * step);