71 lines
1.5 KiB
C
71 lines
1.5 KiB
C
/* --------------------------------------------------------------- */
|
|
/* gnuplot : xplt.h */
|
|
/* https://fr.wikibooks.org/wiki/Mathc_gnuplot/Fichiers_h_:_xplt */
|
|
/* --------------------------------------------------------------- */
|
|
|
|
typedef struct
|
|
{
|
|
double xmini; double xmaxi;
|
|
double ymini; double ymaxi;
|
|
|
|
}W_Ctrl, *PW_Ctrl;
|
|
/* ------------------------------------ */
|
|
W_Ctrl i_WGnuplot(
|
|
double xmini, double xmaxi,
|
|
double ymini, double ymaxi
|
|
)
|
|
{
|
|
W_Ctrl w = {xmini,xmaxi,ymini,ymaxi};
|
|
|
|
return (w);}
|
|
/* ------------------------------------ */
|
|
typedef struct
|
|
{
|
|
double xmini; double xmaxi;
|
|
double ymini; double ymaxi;
|
|
double zmini; double zmaxi;
|
|
|
|
}Ws_Ctrl, *PWs_Ctrl;
|
|
/* ------------------------------------ */
|
|
Ws_Ctrl i_WsGnuplot(
|
|
double xmini, double xmaxi,
|
|
double ymini, double ymaxi,
|
|
double zmini, double zmaxi
|
|
)
|
|
{
|
|
Ws_Ctrl w = {xmini,xmaxi,ymini,ymaxi,zmini,zmaxi};
|
|
|
|
return (w);}
|
|
/* ------------------------------------ */
|
|
typedef struct
|
|
{
|
|
double rot_x; double rot_z;
|
|
double scale; double scale_z;
|
|
|
|
}View_Ctrl, *PView_Ctrl;
|
|
/* ------------------------------------ */
|
|
View_Ctrl i_VGnuplot(
|
|
double rot_x, double rot_z,
|
|
double scale, double scale_z
|
|
)
|
|
{
|
|
View_Ctrl V = {rot_x,rot_z,scale_z,scale_z};
|
|
|
|
return (V);}
|
|
/* ------------------------------------ */
|
|
typedef struct
|
|
{
|
|
double mini; double maxi;
|
|
double step;
|
|
|
|
}t_Ctrl, *Pt_Ctrl;
|
|
/* ------------------------------------ */
|
|
t_Ctrl i_time(
|
|
double mini, double maxi,
|
|
double step
|
|
)
|
|
{
|
|
t_Ctrl t = {mini,maxi,step};
|
|
|
|
return (t);}
|