File: VTransPoly.c

package info (click to toggle)
acm4 4.7-18
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,776 kB
  • ctags: 1,621
  • sloc: ansic: 16,777; makefile: 364; sh: 31
file content (16 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "Vlib.h"

VPolygon *VTransformPolygon (poly, m)
VPolygon *poly;
VMatrix *m; {

	int	i;
	VPoint	tmp;

	for (i=0; i<poly->numVtces; ++i) {
		VTransform (&(poly->vertex[i]), m, &tmp);
		poly->vertex[i] = tmp;
	}

	return poly;
}