20#include <shapes/HollowConicalFrustum.hpp>
37 m_cyl_transform_params->axis(), m_cyl_transform_params->orientation());
40 m_cyl_transform_params->axis(), pos - m_cyl_transform_params->center());
74 if (std::fabs(
pos_phi) < m_central_angle / 2.) {
77 pos_phi > 0. ? m_central_angle / 2. : -m_central_angle / 2.;
107 dist = d * m_direction;
Vector implementation and trait types for boost qvm interoperability.
void calculate_dist(const Utils::Vector3d &pos, double &dist, Utils::Vector3d &vec) const override
Calculate the distance vector and its norm between a given position and the cone.
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
Vector< T, 3 > vector_product(Vector< T, 3 > const &a, Vector< T, 3 > const &b)
Vector3d transform_coordinate_cylinder_to_cartesian(Vector3d const &pos)
Coordinate transformation from cylindrical to Cartesian coordinates.
Vector3d transform_coordinate_cartesian_to_cylinder(Vector3d const &pos)
Coordinate transformation from Cartesian to cylindrical coordinates.
Vector3d basis_change(Vector3d const &b1, Vector3d const &b2, Vector3d const &b3, Vector3d const &v, bool reverse=false)
Basis change.