Enumeration of functions that can be casted to some other types.
More...
#include <CameraLensPrivate.hh>
Enumeration of functions that can be casted to some other types.
gazebo::rendering::CameraLensPrivate::MapFunctionEnum::MapFunctionEnum |
( |
const std::string & |
_str | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
[in] | str | Function name 'sin', 'tan' or 'id' |
float gazebo::rendering::CameraLensPrivate::MapFunctionEnum::Apply |
( |
const float |
_t | ) |
|
|
inline |
Apply function to float value.
- Returns
- The result of application
std::string gazebo::rendering::CameraLensPrivate::MapFunctionEnum::AsString |
( |
| ) |
const |
|
inline |
Cast to std::string.
- Returns
- The same string which was passed to constructor
ignition::math::Vector3d gazebo::rendering::CameraLensPrivate::MapFunctionEnum::AsVector3d |
( |
| ) |
const |
|
inline |
Cast to ignition::math::Vector3d, this vector is passed to shader to avoid branching.
- Returns
- Vector3 Vector whose one component is 1 and the rest are nulls
Assignment operator.
- Parameters
-
- Returns
- Reference to (*this)
The documentation for this class was generated from the following file: