早教吧 育儿知识 作业答案 考试题库 百科 知识分享

原题是:Doestheorderoftransformationeverymatterwhenyouareperformingacomposition?Explainyouranswer.Usespecificcoordinatestoproveyouanswer.意思差不多是一个图形先翻转再平移和先平移再翻转的结果是一样吗?

题目详情
原题是:Does
the order of transformation every matter when you are performing a
composition?Explain your answer.Use specific coordinates to prove
you answer.
意思差不多是一个图形先翻转再平移和先平移再翻转的结果是一样吗?一个图形先旋转再平移和先平移再旋转的结果是一样吗?一个图形先翻转再旋转和先旋转再翻转的结果是一样吗?
▼优质解答
答案和解析
我不知道翻转是什么意思,opengl里只有平移,旋转,缩放三种操作.平移与旋转是有先后顺序的,效果不一样.比如先glRotatef(Angle,0.0f,1.0f,0.0f);再glTranslatef(-10.0f,0.0f,0.0f);则绕(0.0,1.0,0.0)旋转;而先glTranslatef(-10.0f,0.0f,0.0f);再glRotatef(Angle,0.0f,1.0f,0.0f);则绕(-10.0,1.0,0.0)旋转,效果是不一样的.