isce3 0.25.0
Loading...
Searching...
No Matches
Vector.h
1#pragma once
2
3#include "forward.h"
4
5#include <array>
6#include <cmath>
7#define EIGEN_MPL2_ONLY
8#include <Eigen/Dense>
9#include "Common.h"
10
11namespace isce3 { namespace core {
12
13template<int N, typename T>
14class Vector : public Eigen::Matrix<T, N, 1> {
15 using super_t = Eigen::Matrix<T, N, 1>;
16 using super_t::super_t;
17
18 static_assert(N > 0);
19};
20
21// Function to compute normal vector to a plane given three points
22CUDA_HOSTDEV inline Vec3 normalPlane(const Vec3& p1,
23 const Vec3& p2,
24 const Vec3& p3) {
25 const Vec3 p13 = p3 - p1;
26 const Vec3 p12 = p2 - p1;
27 return p13.cross(p12).normalized();
28}
29
30}} // namespace isce3::core
Definition Vector.h:14
base interpolator is an abstract base class
Definition BinarySearchFunc.cpp:5

Generated for ISCE3.0 by doxygen 1.13.2.