⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constants.h

📁 卫星仿真软件 卫星仿真软件 卫星仿真软件
💻 H
字号:
/* ***************************************************** * *  SaVi by Robert Thurman (thurman@geom.umn.edu) and *          Patrick Worfolk (worfolk@alum.mit.edu). * *  Copyright (c) 1997 by The Geometry Center. *  This file is part of SaVi.  SaVi is free software; *  you can redistribute it and/or modify it only under *  the terms given in the file COPYRIGHT which you should *  have received along with this file.  SaVi may be *  obtained from: *  http://savi.sourceforge.net/ *  http://www.geom.uiuc.edu/locate/SaVi * ***************************************************** * * constants.h * * $Id: constants.h,v 1.8 2004/12/30 22:48:21 lloydwood Exp $ */#ifndef NULL#define NULL (void *)0#endif#ifndef _CONSTANTS_H_#define _CONSTANTS_H_#define TRUE 1#define FALSE 0#define NOT_OK -1#define HANDLE_FILE_SAVI "oogl/savi.oogl"#define HANDLE_FILE_LOGO "oogl/savilogo.oogl"#define TCL_DIR "tcl"#ifndef PI#define PI 3.14159265358979324#define TWOPI 6.2831853071795865#define HALFPI 1.570796326794897#else#define TWOPI PI*2#define HALFPI PI/2#endif#define DEG_TO_RAD (PI/180.0)#define RAD_TO_DEG (180.0/PI)#define SECS_PER_DAY (3600*24)#define ANOMALY_COMPUTATION_TOLERANCE 1e-5/*  The gravitational parameter MU. Units are km^3/s^2  */#define EARTH_MU 398601.2#define EARTH_RADIUS 6378.14 /* km *//* Earth rotation rate (in geocentric equatorial coordinates *//* is (2*PI+2*PI/365.25) radians per day. *//* The second term accounts for the fact that the earth is orbiting *//* the sun. The factor is 1/365.25 rather than 1/365 because of leap *//* year effects. The rate below is radians per second. */#define EARTH_ROTATION_RATE (TWOPI*1.160576e-5)#define EARTH_OBLATENESS 1.0826e-3/*  Parameters for coverage display */#define IMAGE_HEIGHT 300#define IMAGE_WIDTH 600#define IMAGE_LARGE_HEIGHT 512#define IMAGE_LARGE_WIDTH  1024#define IMAGE_SIZE (IMAGE_HEIGHT*IMAGE_WIDTH)#define ELEV_MASK_ANGLE (30*DEG_TO_RAD)#define SAT_CONE_ANGLE (PI/2.86)#define LONGITUDE_CENTER_LINE 0.0#define LONGITUDE_CENTER_LINE_SINU (-90.0)#define COVERAGE_ANGLE 0.0/* set sensible diameter for fisheye view */#define FISHEYE_DIAMETER 300/* parameters for Geomview display *//* number of segments in cone surface/footprint cannot be changed */#define GV_FOOTPRINT_EDGE_SEGMENTS 16/* increased for fidelity on highly elliptical orbits. */#define GV_ORBIT_SEGMENTS 90/* bitmap of geographical boundaries for coverage */#define SINUSOIDAL_BITMAP_NAME "maps/world90W.sinu.pbm"#define CYLINDRICAL_BITMAP_NAME "maps/world.cyl.pbm"#define UNPROJECTED_BITMAP_NAME "maps/world.unp.pbm"#define SINUSOIDAL_LARGE_BITMAP_NAME "maps/world90W1024.sinu.pbm"#define CYLINDRICAL_LARGE_BITMAP_NAME "maps/world1024.cyl.pbm"#define UNPROJECTED_LARGE_BITMAP_NAME "maps/world1024.unp.pbm"#endif/* !_CONSTANTS_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -