Example #1
0
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;
}
Example #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]);
    }
}