Changeset 185 for cpp/frams/genetics/fF


Ignore:
Timestamp:
03/19/14 00:14:52 (10 years ago)
Author:
Maciej Komosinski
Message:

Avoid "atan2: domain error"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fF/conv_fF.cpp

    r178 r185  
    77#include <frams/model/model.h>
    88#include <common/nonstd_stl.h>
     9#include <common/Convert.h>
    910
    1011GenoConv_fF0::GenoConv_fF0()
     
    126127                double angle;
    127128
    128                 angle = atan2(pzyprim, pzxprim);
     129                angle = Convert::atan_2(pzyprim, pzxprim);
    129130                double alpha = angle - alpha_;
    130131
Note: See TracChangeset for help on using the changeset viewer.