Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95090349
plotutils.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 12, 19:01
Size
578 B
Mime Type
text/x-c
Expires
Sat, Dec 14, 19:01 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22930769
Attached To
rSYMKIT symkit
plotutils.h
View Options
#ifndef PLOTUTILS_H
#define PLOTUTILS_H
#include "skutils.h"
//contient les infos utiles pour le dessin d'un graph
struct
SKAxys
{
SKAxys
(
double
range
=
2
,
double
offset
=
-
1
,
symkit
::
color_s
color
=
symkit
::
color_s
(
0
,
0
,
0
,
1
))
:
range
(
range
),
offset
(
offset
),
color
(
color
)
{}
double
range
;
double
offset
;
symkit
::
color_s
color
;
void
zoom
(
float
ratio
)
{
offset
-=
range
*
(
1.0f
/
ratio
-
1
)
/
2
;
range
/=
ratio
;
}
void
translate
(
float
ratio
)
{
offset
+=
range
*
ratio
/
2
;
}
};
#endif
// PLOTUTILS_H
Event Timeline
Log In to Comment