Loading...
Searching...
No Matches
cross_implementation.h
Go to the documentation of this file.
1
8#ifndef _CLASS_CROSSIMP
9#define _CLASS_CROSSIMP
10
11#include "ndcurves/fwd.h"
12
13namespace ndcurves {
14inline Eigen::Vector3d cross(const Eigen::VectorXd& a,
15 const Eigen::VectorXd& b) {
16 Eigen::Vector3d c;
17 c << a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2],
18 a[0] * b[1] - a[1] * b[0];
19 return c;
20}
21
22inline Eigen::Vector3d cross(const Eigen::Vector3d& a,
23 const Eigen::Vector3d& b) {
24 return a.cross(b);
25}
26
27inline Eigen::Vector3f cross(const Eigen::Vector3f& a,
28 const Eigen::Vector3f& b) {
29 return a.cross(b);
30}
31
32template <typename N, bool S>
37} // namespace ndcurves
38#endif //_CLASS_CROSSIMP
forward declaration of all curves class
Definition bernstein.h:20
Eigen::Vector3d cross(const Eigen::VectorXd &a, const Eigen::VectorXd &b)
Definition cross_implementation.h:14
bool isApprox(const T a, const T b, const T eps=1e-6)
Definition curve_abc.h:25
Definition linear_variable.h:26
linear_variable_t cross(const linear_variable_t &other) const
Compute the cross product of the current linear_variable and the other. This method of course only ma...
Definition linear_variable.h:158