Fermat
|
Defines various spherical mappings. More...
#include <cugar/basic/numbers.h>
#include <cugar/linalg/vector.h>
#include <algorithm>
#include <cugar/spherical/mappings_inline.h>
Go to the source code of this file.
Namespaces | |
cugar | |
Define a vector_view POD type and plain_view() for std::vector. | |
Functions | |
CUGAR_HOST CUGAR_DEVICE Vector3f | cugar::from_spherical_coords (const Vector2f &uv) |
CUGAR_HOST CUGAR_DEVICE Vector2f | cugar::to_spherical_coords (const Vector3f &vec) |
CUGAR_HOST CUGAR_DEVICE Vector2f | cugar::square_to_unit_disk (const Vector2f uv) |
CUGAR_HOST CUGAR_DEVICE Vector2f | cugar::unit_disk_to_square (const Vector2f disk) |
CUGAR_HOST CUGAR_DEVICE Vector3f | cugar::square_to_cosine_hemisphere (const Vector2f &uv) |
CUGAR_HOST CUGAR_DEVICE Vector2f | cugar::cosine_hemisphere_to_square (const Vector3f &dir) |
CUGAR_HOST CUGAR_DEVICE Vector3f | cugar::uniform_square_to_sphere (const Vector2f &uv) |
CUGAR_HOST CUGAR_DEVICE Vector2f | cugar::uniform_sphere_to_square (const Vector3f &vec) |
CUGAR_HOST CUGAR_DEVICE Vector2f | cugar::hemisphere_to_hemioct (Vector3f v) |
CUGAR_HOST CUGAR_DEVICE Vector3f | cugar::hemioct_to_hemisphere (Vector2f e) |
CUGAR_HOST CUGAR_DEVICE Vector2f | cugar::sphere_to_oct (Vector3f v) |
CUGAR_HOST CUGAR_DEVICE Vector3f | cugar::oct_to_sphere (Vector2f e) |
Defines various spherical mappings.