Example #1
0
//	-----------------------------------------------------------
//	Compute the center of the side in u,v coordinates.
static void rotate_uv_points_on_side(const vsegptr_t segp, sidenum_fast_t sidenum, const array<fix, 4> &rotmat, const uvl &uvcenter)
{
	side	*sidep = &segp->sides[sidenum];
	range_for (auto &v, sidep->uvls)
	{
		v = rotate_uv_point(rotmat, v, uvcenter);
	}
}
Example #2
0
//	-----------------------------------------------------------
//	Compute the center of the side in u,v coordinates.
void rotate_uv_points_on_side(segment *segp, int sidenum, fix *rotmat, uvl *uvcenter)
{
	int	v;
	side	*sidep = &segp->sides[sidenum];
	uvl	tuv;

	for (v=0; v<4; v++) {
		rotate_uv_point(&tuv, rotmat, &sidep->uvls[v], uvcenter);
		sidep->uvls[v] = tuv;
	}
}