From 375d87a9b0ec1cf2fffd705adb870c86144d2400 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 26 Oct 2026 20:05:20 +0100 Subject: Replace the C++ implementation with the Rust port The Rust port (formerly gipfel-rs) is now the official successor to the FLTK/GSL C++ code base. This squashes the port into a single commit and removes the C++ sources (they remain in the git history below). Layout: crates/gipfel-core headless core: hills, panorama geometry, projections (maxima-generated derivatives), pure-Rust LM fit, gipfel: JPEG comment + EXIF I/O, profiles, stitching crates/gipfel-cli command-line tools (export, info, stitch, profiles) crates/gipfel-app Cosmic DE (libcosmic) GUI, binary name `gipfel` codegen/ maxima scripts + regen.sh for the projection code tests/ golden files + C++ reference harnesses (historical) The original README is kept for now; it will be updated to describe the Rust build. gipfel.dat, AUTHORS, ChangeLog and NEWS are unchanged. --- src/ProjectionLSQ.H | 59 ----------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 src/ProjectionLSQ.H (limited to 'src/ProjectionLSQ.H') diff --git a/src/ProjectionLSQ.H b/src/ProjectionLSQ.H deleted file mode 100644 index a380b4c..0000000 --- a/src/ProjectionLSQ.H +++ /dev/null @@ -1,59 +0,0 @@ -// -// Copyright 2006-2009 Johannes Hofmann -// -// This software may be used and distributed according to the terms -// of the GNU General Public License, incorporated herein by reference. - -#ifndef PROJECTIONLSQ_H -#define PROJECTIONLSQ_H - -#include "Hill.H" -#include "ViewParams.H" - -class ProjectionLSQ { - private: - double comp_scale(double alph_a, double alph_b, double d1, double d2); - - int lsq(const Hills *m, ViewParams *parms, int distortion_correct); - - protected: - static double pi; - double sec(double a); - - public: - typedef enum { - RECTILINEAR = 0, - CYLINDRICAL = 1 - } Projection_t; - - ProjectionLSQ() {}; - virtual ~ProjectionLSQ() {}; - - void get_coordinates(double a_view, double a_nick, - const ViewParams *parms, double *x, double *y); - - virtual int comp_params(const Hills *h, ViewParams *parms); - - virtual double get_view_angle(); - -#define ARGS double c_view, double c_nick, double c_tilt, double scale, double k0, double k1, double x0, double m_view, double m_nick - virtual double mac_x(ARGS); - virtual double mac_y(ARGS); - virtual double mac_x_dc_view(ARGS); - virtual double mac_x_dc_nick(ARGS); - virtual double mac_x_dc_tilt(ARGS); - virtual double mac_x_dscale(ARGS); - virtual double mac_x_dk0(ARGS); - virtual double mac_x_dk1(ARGS); - virtual double mac_x_dx0(ARGS); - virtual double mac_y_dc_view(ARGS); - virtual double mac_y_dc_nick(ARGS); - virtual double mac_y_dc_tilt(ARGS); - virtual double mac_y_dscale(ARGS); - virtual double mac_y_dk0(ARGS); - virtual double mac_y_dk1(ARGS); - virtual double mac_y_dx0(ARGS); -#undef ARGS - -}; -#endif -- cgit v1.2.3