#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>

#include "pmls.h"
#include "primitive.h"


/* Constantes */

#define D_PI 6.28318530717958647692
#define T_PI 3.14159265358979
#define EPSILON  1e-12

#define CARRE(x) ((x)*(x))
#define CUBE(x) ((x)*(x)*(x))


/* Structures */

typedef struct point4d
{
	double x, y, z;
	double t;
}point4d_t;


/* Variables globales */

double Ray;
int nb_sommets;
point4d_t *liste_sommets;
double *liste_triee_y;


/* Fonctions */

void lecture_equi(FILE *file1);

void ecriture_equi(FILE *file2);

void Ylm(int order, int level);




