53 const auto vCosTheta = v *
std::cos(theta);
55 auto kCrossV = kUnit.cross(v);
58 const auto kDotV = kUnit.dot(v);
59 auto kkDotV = kUnit * kDotV;
62 auto vec = vCosTheta + kCrossV;
79 template<
typename dtype>
Holds a 3D vector.
Definition: Vec3.hpp:51
Vec3 normalize() const noexcept
Definition: Vec3.hpp:289
NdArray< double > toNdArray() const
Definition: Vec3.hpp:337
Vec3 rodriguesRotation(const Vec3 &k, double theta, const Vec3 &v) noexcept
Definition: rodriguesRotation.hpp:49
auto sin(dtype inValue) noexcept
Definition: sin.hpp:49
auto cos(dtype inValue) noexcept
Definition: cos.hpp:49