Cortex  10.0.0-a4
Public Types | Public Member Functions | List of all members
IECore::SphericalToEuclideanTransform< F, T > Class Template Reference

Forward declaration. More...

#include <EuclideanToSphericalTransform.h>

+ Inheritance diagram for IECore::SphericalToEuclideanTransform< F, T >:

Public Types

typedef EuclideanToSphericalTransform< T, F > InverseType
 
- Public Types inherited from IECore::SpaceTransform< F, T >
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.
 
- Public Member Functions inherited from IECore::SpaceTransform< F, T >
operator() (const F &f)
 

Detailed Description

template<typename F, typename T>
class IECore::SphericalToEuclideanTransform< F, T >

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.


The documentation for this class was generated from the following files: