Rev 8414 | Rev 9651 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8414 | Rev 8419 | ||
---|---|---|---|
Line 960... | Line 960... | ||
960 | matrix[0]=matrix[3]=cos(r); |
960 | matrix[0]=matrix[3]=cos(r); |
961 | matrix[1]=-sin(r); matrix[2]=sin(r); |
961 | matrix[1]=-sin(r); matrix[2]=sin(r); |
962 | transform=1; |
962 | transform=1; |
963 | } |
963 | } |
964 | 964 | ||
965 | /* Set |
965 | /* Set linear transformation */ |
966 | void obj_linear(objparm *pm) |
966 | void obj_linear(objparm *pm) |
967 | { |
967 | { |
968 | int i; |
968 | int i; |
969 | for(i=0;i<4;i++) matrix[i]=pm->pd[i]; |
969 | for(i=0;i<4;i++) matrix[i]=pm->pd[i]; |
970 | transform=1; |
970 | transform=1; |
971 | } |
971 | } |
972 | 972 | ||
973 | /* Set |
973 | /* Set translation transformation */ |
974 | void obj_translation(objparm *pm) |
974 | void obj_translation(objparm *pm) |
975 | { |
975 | { |
976 | transx=pm->pd[0]; transy=pm->pd[1]; |
976 | transx=pm->pd[0]; transy=pm->pd[1]; |
977 | } |
977 | } |
978 | 978 | ||
979 | /* |
979 | /* kill affine transformation */ |
980 | void obj_killaffine(objparm *pm) |
980 | void obj_killaffine(objparm *pm) |
981 | { |
981 | { |
982 | matrix[0]=matrix[3]=1; |
982 | matrix[0]=matrix[3]=1; |
983 | matrix[1]=matrix[2]=transx=transy=0; |
983 | matrix[1]=matrix[2]=transx=transy=0; |
984 | transform=0; |
984 | transform=0; |
985 | } |
985 | } |
986 | 986 | ||
987 | /* |
987 | /* kill affine transformation */ |
988 | void obj_killlinear(objparm *pm) |
988 | void obj_killlinear(objparm *pm) |
989 | { |
989 | { |
990 | matrix[0]=matrix[3]=1; |
990 | matrix[0]=matrix[3]=1; |
991 | matrix[1]=matrix[2]=0; |
991 | matrix[1]=matrix[2]=0; |
992 | transform=0; |
992 | transform=0; |
993 | } |
993 | } |
994 | 994 | ||
995 | /* |
995 | /* kill affine transformation */ |
996 | void obj_killtranslation(objparm *pm) |
996 | void obj_killtranslation(objparm *pm) |
997 | { |
997 | { |
998 | transx=transy=0; |
998 | transx=transy=0; |
999 | } |
999 | } |
1000 | 1000 |