, direction(direction / direction.norm())
, point_on_axis(point_on_axis)
, tolerance(tolerance)
+ , dxn(cross_product_3d(this->direction, normal_direction))
{
// do not use static_assert to make dimension-independent programming
// easier.
ExcMessage("CylindricalManifold can only be used for spacedim==3!"));
// Rotate the orthogonal direction by the given angle
- const double sine_r = std::sin(chart_point(1)) * chart_point(0);
- const double cosine_r = std::cos(chart_point(1)) * chart_point(0);
- const Tensor<1, spacedim> dxn = cross_product_3d(direction, normal_direction);
+ const double sine_r = std::sin(chart_point(1)) * chart_point(0);
+ const double cosine_r = std::cos(chart_point(1)) * chart_point(0);
const Tensor<1, spacedim> intermediate =
normal_direction * cosine_r + dxn * sine_r;
// Rotate the orthogonal direction by the given angle
const double sine = std::sin(chart_point(1));
const double cosine = std::cos(chart_point(1));
- const Tensor<1, spacedim> dxn = cross_product_3d(direction, normal_direction);
const Tensor<1, spacedim> intermediate =
normal_direction * cosine + dxn * sine;