const.c File Reference

Constants used by the ray tracing library. More...

#include "common.h"
#include <stdio.h>
#include "machine.h"
#include "bu.h"
#include "vmath.h"
#include "bn.h"

Include dependency graph for const.c:

Go to the source code of this file.

Variables

const double bn_pi = 3.14159265358979323846
 pi
const double bn_twopi = 6.28318530717958647692
 pi*2
const double bn_halfpi = 1.57079632679489661923
 pi/2
const double bn_quarterpi = 0.78539816339744830961
 pi/4
const double bn_invpi = 0.318309886183790671538
 1/pi
const double bn_inv2pi = 0.159154943091895335769
 1/(pi*2)
const double bn_inv4pi = 0.07957747154594766788
 1/(pi*4)
const double bn_inv255 = 1.0/255.0
const double bn_degtorad = 0.0174532925199433
 (pi*2)/360
const double bn_radtodeg = 57.29577951308230698802
 360/(pi*2)


Detailed Description

Constants used by the ray tracing library.

Source -
SECAD/VLD Computing Consortium, Bldg 394
The U. S. Army Ballistic Research Laboratory
Aberdeen Proving Ground, Maryland 21005

Definition in file const.c.


Variable Documentation

const double bn_pi = 3.14159265358979323846
 

pi

Definition at line 51 of file const.c.

Referenced by bend_pipe_shot(), bn_angle_measure(), draw_pipe_arc(), nmg_edge_collapse(), nmg_measure_fu_angle(), nmg_radial_build_list(), nmg_vu_angle_measure(), rt_arc2d_to_cnurb(), rt_bend_pipe_prep(), rt_ehy_plot(), rt_ehy_tess(), rt_ell(), rt_ell_norms(), rt_epa_plot(), rt_epa_tess(), rt_eto_plot(), rt_eto_tess(), rt_num_circular_segments(), rt_pipe_ck(), rt_pipe_plot(), rt_pipe_prep(), rt_pipe_tess(), rt_rhc_plot(), rt_rhc_tess(), rt_rpc_plot(), rt_rpc_tess(), rt_tgc_tess(), rt_tor_plot(), rt_tor_tess(), and tesselate_pipe_bend().

const double bn_twopi = 6.28318530717958647692
 

pi*2

Definition at line 52 of file const.c.

Referenced by bn_angle_measure(), nmg_check_radial_angles(), nmg_is_angle_in_wedge(), nmg_radial_join_eu(), nmg_vu_angle_measure(), rt_ehy_plot(), rt_ehy_tess(), rt_epa_plot(), rt_epa_tess(), rt_eto_plot(), rt_eto_tess(), rt_eto_uv(), rt_raybundle_maker(), rt_tgc_uv(), rt_tor_plot(), rt_tor_tess(), and spm_init().

const double bn_halfpi = 1.57079632679489661923
 

pi/2

Definition at line 53 of file const.c.

Referenced by rt_cline_tess(), rt_ell_tess(), rt_find_fallback_angle(), rt_part_tess(), and rt_tgc_tess().

const double bn_quarterpi = 0.78539816339744830961
 

pi/4

Definition at line 54 of file const.c.

const double bn_invpi = 0.318309886183790671538
 

1/pi

Definition at line 55 of file const.c.

Referenced by rt_ell_uv(), rt_rhc_uv(), rt_rpc_uv(), and rt_sph_uv().

const double bn_inv2pi = 0.159154943091895335769
 

1/(pi*2)

Definition at line 56 of file const.c.

Referenced by rt_ehy_uv(), rt_ell_uv(), rt_epa_uv(), rt_part_uv(), rt_rec_uv(), rt_sph_uv(), and rt_tor_uv().

const double bn_inv4pi = 0.07957747154594766788
 

1/(pi*4)

Definition at line 57 of file const.c.

const double bn_inv255 = 1.0/255.0
 

Definition at line 59 of file const.c.

Referenced by db_apply_state_from_comb(), db_do_anim(), and rt_region_color_map().

const double bn_degtorad = 0.0174532925199433
 

(pi*2)/360

Definition at line 61 of file const.c.

Referenced by bn_mat_ae(), bn_mat_angles(), vo_arot_cmd(), vo_mat_aet(), and wdb_tol_cmd().

const double bn_radtodeg = 57.29577951308230698802
 

360/(pi*2)

Definition at line 62 of file const.c.

Referenced by bn_ae_vec(), bn_aet_vec(), nmg_face_coincident_vu_sort(), nmg_jeg(), nmg_pick_best_edge_g(), nmg_pr_one_eu_vecs(), nmg_pr_radial(), nmg_radial_join_eu(), nmg_radial_verify_monotone(), nmg_radial_verify_pointers(), nmg_use_edge_g(), nmg_vlblock_euleft(), nmg_vu_angle_measure(), rt_find_fallback_angle(), and wdb_tol_cmd().


Generated on Mon Sep 18 01:25:02 2006 for BRL-CAD by  doxygen 1.4.6