Cortex
10.0.0-a4
|
Forward declaration. More...
#include <EuclideanToSphericalTransform.h>
Public Types | |
typedef EuclideanToSphericalTransform< T, F > | InverseType |
![]() | |
typedef F | FromType |
typedef T | ToType |
typedef SpaceTransform< T, F > | InverseType |
The type of the converter that can perform the inverse transformation. | |
Public Member Functions | |
BOOST_STATIC_ASSERT ((boost::mpl::or_< TypeTraits::IsVec3< F >, TypeTraits::IsVec2< F > >::value==true)) | |
BOOST_STATIC_ASSERT ((TypeTraits::IsVec3< T >::value)) | |
virtual T | transform (const F &f) |
Perform the conversion. The x component should be in the range [0,2*M_PI] and the second [0,M_PI]. | |
InverseType | inverse () const |
Returns an instance of a class able to perform the inverse conversion. | |
![]() | |
T | operator() (const F &f) |
Forward declaration.
A templated SpaceTransform class to perform Spherical coordinates to Euclidean coordinates. Spherical coordinates are defined by two angles: phi and theta stored in x and y components of a Imath::Vec2 structure respectively. They can optionally have a third component specifying the radius. So type F can be either Imath::Vec2<> or Imath::Vec3<>. The theta ranges from 0 to PI and it represents the angle from Z axis. The phi component ranges from 0 to 2*PI and represents the angle of rotation on the XY plane.