Add files via upload
This commit is contained in:
committed by
GitHub
parent
70440115ee
commit
c73cbe10a0
@@ -1,7 +1,10 @@
|
||||
double circlex[NMAXCIRCLES], circley[NMAXCIRCLES], circlerad[NMAXCIRCLES]; /* position and radius of circular scatters */
|
||||
short int circleactive[NMAXCIRCLES]; /* tells which circular scatters are active */
|
||||
short int circleactive[NMAXCIRCLES]; /* tells which circular scatters are active */
|
||||
short int newcircle[NMAXCIRCLES]; /* takes value 1 when circle has just been hit */
|
||||
int circlecolor[NMAXCIRCLES]; /* color of circular scatterer */
|
||||
int ncircles = NMAXCIRCLES; /* actual number of circles, can be decreased e.g. for random patterns */
|
||||
|
||||
|
||||
double x_shooter = -0.2, y_shooter = -0.6, x_target = 0.4, y_target = 0.7;
|
||||
/* shooter and target positions for "laser in room of mirrors" simulations, with default values for square domain */
|
||||
|
||||
@@ -27,6 +30,8 @@ double x_shooter = -0.2, y_shooter = -0.6, x_target = 0.4, y_target = 0.7;
|
||||
#define D_ANGLE 12 /* angular sector */
|
||||
#define D_LSHAPE 13 /* L-shaped billiard for conical singularity */
|
||||
#define D_GENUSN 14 /* polygon with identifies opposite sides */
|
||||
#define D_PARABOLAS 15 /* polygon with parabolic sides */
|
||||
#define D_PENROSE 16 /* Penrose solution to illumination problem */
|
||||
|
||||
#define D_CIRCLES 20 /* several circles */
|
||||
#define D_CIRCLES_IN_RECT 21 /* several circles inside a rectangle */
|
||||
@@ -35,7 +40,13 @@ double x_shooter = -0.2, y_shooter = -0.6, x_target = 0.4, y_target = 0.7;
|
||||
#define C_FOUR_CIRCLES 0 /* four circles almost touching each other */
|
||||
#define C_SQUARE 1 /* square grid of circles */
|
||||
#define C_HEX 2 /* hexagonal/triangular grid of circles */
|
||||
#define C_TRI 21 /* equilateral triangular grid of circles */
|
||||
#define C_GOLDEN_MEAN 3 /* golden mean grid */
|
||||
#define C_GOLDEN_SPIRAL 4 /* golden spiral (sunflower) grid */
|
||||
#define C_RAND_DISPLACED 5 /* randomly displaced square grid */
|
||||
#define C_RAND_POISSON 6 /* random Poisson point process */
|
||||
#define C_POISSON_DISC 7 /* Poisson disc sampling */
|
||||
|
||||
|
||||
#define C_LASER 11 /* laser fight in a room of mirrors */
|
||||
#define C_LASER_GENUSN 12 /* laser fight in a translation surface */
|
||||
Reference in New Issue
Block a user