int a[3]; }point;
point change(point p, int a[3][3]) {
int b[3] = { 0, 0, 0 }; for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) b[i] += p.a[j] * a[j][i];
return; }
void Rotation(point p1, point p2, point p3, point p4) {
double d; printf("Please enter the angel of rotation:(格式:60度就输入60):"); scanf("%lf", &d); getchar(); d = d / 180 * 1.0 * PI; double a[3][3] = { cos(d), -sin(d), 0, sin(d), cos(d), 0, 0, 0, 1 }; DrawChange2(p1, p2, p3, p4, a);
(4)对称:
以X轴对称:
,有
*
=
;
以Y轴对称:
,有
*
=
;
以原点O对称:
,有
*
=
;
以Y=X对称:
,有
*
=
;
以Y=-X对称:
,有
*
=
;
(5)错切:
,有
*
=
;
-------------------------------------------------------------下课啦---------------------------------------------------------------