本文介绍了在c ++中atan和atan2有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c ++中 cd> atan2 允许计算所有四个象限的反正切。 仅允许计算从,如果我记得正确,象限1和4。


what is the difference between atan and atan2 in c++ ?

解决方案

std::atan2 allows calculating the arctangent of all four quadrants. std::atan only allows calculating from, if I remember right, quadrants 1 and 4.

这篇关于在c ++中atan和atan2有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-31 00:03