Classes | |
class | cuproj::vec_2d< T > |
A generic 2D vector type. More... | |
Functions | |
template<typename T > | |
cuproj::vec_2d (T x, T y) -> vec_2d< T > | |
template<typename T > | |
T CUPROJ_HOST_DEVICE | cuproj::dot (vec_2d< T > const &a, vec_2d< T > const &b) |
Compute dot product of two 2D vectors. | |
template<typename T > | |
T CUPROJ_HOST_DEVICE | cuproj::det (vec_2d< T > const &a, vec_2d< T > const &b) |
Compute 2D determinant of a 2x2 matrix with column vectors a and b . | |
template<typename T > | |
vec_2d< T > CUPROJ_HOST_DEVICE | cuproj::box_min (vec_2d< T > const &a, vec_2d< T > const &b) |
Return a new vec_2d made up of the minimum x- and y-components of two input vec_2d values. | |
template<typename T > | |
vec_2d< T > CUPROJ_HOST_DEVICE | cuproj::box_max (vec_2d< T > const &a, vec_2d< T > const &b) |
Return a new vec_2d made up of the minimum x- and y-components of two input vec_2d values. | |
template<typename T > | |
vec_2d< T > CUPROJ_HOST_DEVICE | cuproj::midpoint (vec_2d< T > const &first, vec_2d< T > const &second) |
Compute the midpoint of first and second . | |
vec_2d< T > CUPROJ_HOST_DEVICE cuproj::box_max | ( | vec_2d< T > const & | a, |
vec_2d< T > const & | b ) |
Return a new vec_2d made up of the minimum x- and y-components of two input vec_2d values.
Definition at line 198 of file vec_2d.hpp.
vec_2d< T > CUPROJ_HOST_DEVICE cuproj::box_min | ( | vec_2d< T > const & | a, |
vec_2d< T > const & | b ) |
Return a new vec_2d made up of the minimum x- and y-components of two input vec_2d values.
Definition at line 185 of file vec_2d.hpp.
T CUPROJ_HOST_DEVICE cuproj::det | ( | vec_2d< T > const & | a, |
vec_2d< T > const & | b ) |
Compute 2D determinant of a 2x2 matrix with column vectors a
and b
.
Definition at line 176 of file vec_2d.hpp.
T CUPROJ_HOST_DEVICE cuproj::dot | ( | vec_2d< T > const & | a, |
vec_2d< T > const & | b ) |
Compute dot product of two 2D vectors.
Definition at line 167 of file vec_2d.hpp.
vec_2d< T > CUPROJ_HOST_DEVICE cuproj::midpoint | ( | vec_2d< T > const & | first, |
vec_2d< T > const & | second ) |
Compute the midpoint of first
and second
.
Definition at line 211 of file vec_2d.hpp.