List of all members | Static Public Member Functions
casadi::BinaryOperation< OP_ATAN2 > Struct Reference

Arctan2. More...

#include <calculus.hpp>

Detailed Description

Definition at line 980 of file calculus.hpp.

Static Public Member Functions

template<typename T >
static void fcn (const T &x, const T &y, T &f)
 
template<typename T >
static void der (const T &x, const T &y, const T &f, T *d)
 

Member Function Documentation

◆ der()

template<typename T >
static void casadi::BinaryOperation< OP_ATAN2 >::der ( const T &  x,
const T &  y,
const T &  f,
T *  d 
)
inlinestatic

Definition at line 983 of file calculus.hpp.

983  {
984  T t = x*x+y*y; d[0]=y/t; d[1]=-x/t;}

References casadi::T.

◆ fcn()

template<typename T >
static void casadi::BinaryOperation< OP_ATAN2 >::fcn ( const T &  x,
const T &  y,
T &  f 
)
inlinestatic

Definition at line 982 of file calculus.hpp.

982 { f = atan2(x, y);}

The documentation for this struct was generated from the following file: