From the given relation, we have
cos2A+cos2B−(1−cos2C)=0
or cos2A+(cos2B−sin2C)=0
or cos2A+cos(B+C)cos(B−C)=0
or cosA[−cos(B+C)−cos(B−C)]=0
or 2cosAcosBcosC=0
Hence either cosA=0,cosB=0 or cosC=0
i.e. either A=π/2 or B=π/2 or C=π/2.
It follows that the △ABC is right angled.