예제 #1
0
파일: 1063.c 프로젝트: zkangHUST/PAT-B
int main()
{
	int n,re,im;
	float temp,max=0;
	scanf("%d",&n);
	while(n--)
	{
		scanf("%d %d",&re,&im);
		temp = mold(re,im);
		if(temp>max)
			max = temp;
	}
	printf("%.2f\n",max);
	return 0;
}
예제 #2
0
void Box::transformVertex(QVector3D v, float animationFrame)
{
    switch (m_globalDefMode)
    {
        case Pinch:
            pinch(v, 1.0f - animationFrame);
            break;
        case Mold:
            mold(v, 1.0f - animationFrame);
            break;
        case Twist:
            twist(v, animationFrame*360.0f);
            break;
        case Bend:
            bend(v, animationFrame*90.0f);
            break;
        default:
            glVertex3fv(&v[0]);
    }
}