|
Boost Users : |
Subject: [Boost-users] [units] atan2 functionality with same dimension for y and x
From: Ryan (mccorywork_at_[hidden])
Date: 2011-04-22 11:13:09
I found that when I passed atan2 a quantity<si::length> value for both y and
x the compiler gave me an error. Upon examination of the atan2 method in
"boost/units/cmath.hpp" I found it expected both inputs to atan2 to be
dimensionless. The method atan2 can be represented simplistically as atan(y
/ x). As long as both dimensions to y and x are the same the results is a
dimensionless value of (y / x). So shouldn't the inputs to
boost::units::atan2 accept any dimension of y and x as long as they are the
same?
Ryan
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net