31 edge_vec_ = compute_edge_vec();
32 length_ = compute_length();
33 unit_vec_ = compute_unit_vec();
34 centroid_ = compute_centroid();
56 if constexpr (
dim == 1)
60 v_2d.col(0) << 0.0, 0.0;
61 v_2d.col(1) << length(), 0.0;
Edge< 2 > to_2d() const
Returns an equivalent edge with coordinates in a local 2D system, and with the local origin at this e...
void set_v(ConstEigRef< EigMatMN< Float, dim, 2 > > v)
Sets the vertices of this Edge.
static Edge< dim > reference_edge()
Returns a reference edge in the specified dimension from 0 to 1 along the first axis.
bool point_on_edge(ConstEigRef< EigColVecN< Float, dim > > r, const Float tol=EDGE_DEFAULT_TOL) const
Returns true if the given point is on the edge, inclusive of vertices.
Edge< 3 > to_3d() const
Adds a 0-valued third dimension if this Edge is in 2D, adds a 0-valued second and third dimension if ...
const Eigen::Ref< const EigObj > ConstEigRef
Read-only reference to an Eigen object.
Eigen::Matrix< T, M, N > EigMatMN
Fixed-size matrix with M rows and N columns containing type T.
double Float
Floating point number.
Eigen::Matrix< T, N, 1 > EigColVecN
Fixed-size column vector of size N containing type T.
Primary namespace for the OpenBEM library.