std::atan2<div class="t-tr-text">(STD :: valarray)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">:</div><div class="t-tr-dropdown-orig">(std::valarray)</div><div class="t-tr-dropdown-notes"> [http://translate.google.com Google].<br/> . [http://en.cppreference.com/w/Cppreference:MachineTranslations ].</div></div></div></div></div>
cppreference.com
[] |
Google. . , . , . |
<metanoindex/>
<tbody> </tbody> template< class T > valarray<T> atan2( const valarray<T>& y, const valarray<T>& x ); |
(1) | |
template< class T > valarray<T> atan2( const valarray<T>& y, const T& vx ); |
(2) | |
template< class T > valarray<T> atan2( const T& vy, const valarray<T>& x ); |
(3) | |
y/x , .:
Computes the inverse tangent of
y/x using the signs of arguments to correctly determine quadrant.1)
,
x.size() != y.size().2)
3)
| x, y | ||
| vy, vx |
, .
(
atan2) . , std::atan2 .:
Unqualified function (
atan2) is used to perform the computation. If such function is not available, std::atan2 is used due to argument dependent lookup. std::valarray. , :
:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
- std::valarray,
std::slice_array,std::gslice_array,std::mask_arraystd::indirect_array.:std::valarray,std::slice_array,std::gslice_array,std::mask_arrayandstd::indirect_arraycan be constructed from the replacement type. - ,
const std::valarray&.:All functions accepting a arguments of typeconst std::valarray&should also accept the replacement type. const std::valarray&const std::valarray&.:All functions accepting two arguments of typeconst std::valarray&should accept every combination ofconst std::valarray&and the replacement type.
| : |
.
(C++11)(C++11) |
, () |