>>514
3D->2D変換

typedef struct type3d {
float x,y,z;
} POINT3D;

typedef struct type2d {
float x,y;
}

void convert3dto2d(p3 *POINT3D, p2 *POINT2D)
{
float vp = 0.7;

p2->x = p3->x * (vp / p3->z);
p2->y = p3->y * (vp / p3->z );
}