vector3d_helpers.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <array>
3 
4 namespace pass
5 {
6 namespace gtoc
7 {
8 
9 std::array<double, 3> cross_product(std::array<double, 3> v1,
10  std::array<double, 3> v2);
11 
12 double dot_product(std::array<double, 3> v1, std::array<double, 3> v2);
13 
14 double norm(std::array<double, 3> v);
15 
16 std::array<double, 3> unit_vector(const std::array<double, 3> &v);
17 
18 std::array<double, 3> add(std::array<double, 3> v1, std::array<double, 3> v2);
19 std::array<double, 3> sub(std::array<double, 3> v1, std::array<double, 3> v2);
20 
21 std::array<double, 3> mul(std::array<double, 3> v1, const double r);
22 std::array<double, 3> div(std::array<double, 3> v1, const double r);
23 } // namespace gtoc
24 } // namespace pass
std::array< double, 3 > unit_vector(const std::array< double, 3 > &v)
Definition: vector3d_helpers.cpp:22
double norm(std::array< double, 3 > v)
Definition: vector3d_helpers.cpp:17
std::array< double, 3 > mul(std::array< double, 3 > v1, const double r)
Definition: vector3d_helpers.cpp:39
std::array< double, 3 > add(std::array< double, 3 > v1, std::array< double, 3 > v2)
Definition: vector3d_helpers.cpp:27
Definition: adaptive_parameter_search.hpp:5
std::array< double, 3 > div(std::array< double, 3 > v1, const double r)
Definition: vector3d_helpers.cpp:45
std::array< double, 3 > sub(std::array< double, 3 > v1, std::array< double, 3 > v2)
Definition: vector3d_helpers.cpp:33
std::array< double, 3 > cross_product(std::array< double, 3 > v1, std::array< double, 3 > v2)
Definition: vector3d_helpers.cpp:4
double dot_product(std::array< double, 3 > v1, std::array< double, 3 > v2)
Definition: vector3d_helpers.cpp:11