12 #ifndef _TRIANGLE_10PAD_H__
13 #define _TRIANGLE_10PAD_H__
18 Triangle_10pad(
double cx,
double cy,
double th,
double gain=1.0,
int layoutNum=0,
int lrMirror=0)
22 const double CST=cos(
DEG2RAD*(th+0));
23 const double SNT=sin(
DEG2RAD*(th+0));
26 const double L=2.0*
H/9.0;
27 const double scale=1/40.0;
35 dX[8]=-128.62;
dY[8]=222.83;
36 dX[10]= 0;
dY[10]=296.55;
37 dX[ 9]= 0;
dY[ 9]=445.54;
38 dX[ 11]= 128.62;
dY[ 11]=222.83;
39 dX[ 0]= 257.2;
dY[ 0]=0;
40 dX[ 6]= -256.3;
dY[ 6]=-147.64;
41 dX[ 1]= 385.83;
dY[1]=-222.83;
42 dX[ 2]=128.62;
dY[ 2]=-222.83;
43 dX[ 3]=0.0;
dY[ 3]=0.0;
44 dX[ 4]=-128.62;
dY[ 4]=-222.83;
45 dX[ 5]=-385.83;
dY[ 5]=-222.83;
46 dX[ 7]=-257.2;
dY[ 7]=0.0;
69 if (lrMirror==1)
x=-
x;
75 for (
int i=0; i<
nVerts; ++i)
79 if (lrMirror==1)
x=-
x;
81 dXv[i]=cx+CST*
x-SNT*
y;
82 dYv[i]=cy+SNT*
x+CST*
y;
89 for (
int i=0; i<
nVerts; ++i)
100 void draw(
unsigned char *image)
102 for (
int i=0; i<
nVerts; ++i)
109 if ((i==6) || (i==10))
void drawLine(unsigned char *image, int x0, int y0, int x1, int y1)
void drawCircle(unsigned char *image, int cx, int cy, double radius)
void draw(unsigned char *image)
Triangle_10pad(double cx, double cy, double th, double gain=1.0, int layoutNum=0, int lrMirror=0)