GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing cplusplus.com — std::atan2 Reference
function template
<valarray>
std::atan2template<class T> valarray<T> atan2 (const valarray<T>& y, const valarray<T>& x);template<class T> valarray<T> atan2 (const valarray<T>& y, const T& x);template<class T> valarray<T> atan2 (const T& y, const valarray<T>& x); Compute atan2 of valarray elements
y/x, using their sign to determine the appropriate quadrant.The function calls atan2 (unqualified) once for each element in both x and y; If either is a single T value, it is used for all calls. This function overloads cmath's atan2. ParametersIf both arguments are valarray objects and their sizes don't match, the behavior is undefined.Return valueA valarray object with the arc tangent values ofy/x.Example
Output:
See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | |||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |