50 template<
typename dtype>
56 returnArray(0, 0) = 0.0;
57 returnArray(0, 1) = -inZ;
58 returnArray(0, 2) = inY;
59 returnArray(1, 0) = inZ;
60 returnArray(1, 1) = 0.0;
61 returnArray(1, 2) = -inX;
62 returnArray(2, 0) = -inY;
63 returnArray(2, 1) = inX;
64 returnArray(2, 2) = 0.0;
76 template<
typename dtype>
81 if (inVec.
size() != 3)
86 return hat(inVec[0], inVec[1], inVec[2]);
98 return hat(inVec.
x, inVec.
y, inVec.
z);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:36
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
size_type size() const noexcept
Definition: NdArrayCore.hpp:4296
Holds a 3D vector.
Definition: Vec3.hpp:50
double z
Definition: Vec3.hpp:55
double x
Definition: Vec3.hpp:53
double y
Definition: Vec3.hpp:54
NdArray< dtype > hat(dtype inX, dtype inY, dtype inZ)
Definition: hat.hpp:51
Definition: Coordinate.hpp:45