From a25441aaab4c15bc5a0dba9dbd4d26cc36780163 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 13 Apr 2005 17:09:19 +0000 Subject: es geht voran es geht voran --- src/Panorama.H | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/Panorama.H') diff --git a/src/Panorama.H b/src/Panorama.H index ae6b839..690ed86 100644 --- a/src/Panorama.H +++ b/src/Panorama.H @@ -1,5 +1,5 @@ // -// "$Id: Panorama.H,v 1.1 2005/04/13 18:07:16 hofmann Exp $" +// "$Id: Panorama.H,v 1.2 2005/04/13 19:09:19 hofmann Exp $" // // X11 header file for the Fast Light Tool Kit (FLTK). // @@ -33,12 +33,21 @@ class Panorama { Mountain *mountains; Mountain *visible_mountains; double pi, deg2rad; + double center_angle; + double scale; int get_pos(const char *name, double *phi, double *lam); - void check_visibility(); + void update_visible_mountains(); + + double distance(double phi, double lam); + + double sin_alpha(double lam, double phi, double c); + + double cos_alpha(double phi, double c); + + double alpha(double phi, double lam); - double Panorama::distance(double phi, double lam); public: Panorama(); @@ -49,5 +58,9 @@ class Panorama { int set_viewpoint(const char *pos); void set_height_dist_ratio(double r); + + Mountain * get_visible_mountains(); + + int get_x(Mountain *m); }; #endif -- cgit v1.2.3