Advanced Multi-Physics (AMP)
On-Line Documentation
edge_t.h
Go to the documentation of this file.
1
2#ifndef EDGE_T
3#define EDGE_T
4
5#include <vector>
6
7class edge_t
8{
9public:
10 edge_t( double const *A, double const *B, double const *ABC );
11 void set_support_points( double const *A, double const *B );
12 void set_containing_plane( double const *ABC );
13 double const *get_support_point_ptr( unsigned int i ) const;
14 double const *get_normal();
15 double const *get_direction();
16 double const *get_center();
17 bool above_point( double const *point, double tolerance = 1.0e-12 );
18 int project_point( double const *point_in_containing_plane,
19 double *projection,
20 double tolerance = 1.0e-12 );
21
22private:
23 double const *support_points_ptr[2];
24 double const *containing_plane_ptr;
25 std::vector<double> normal;
26 std::vector<double> direction;
27 std::vector<double> center;
28 std::vector<double> tmp;
32
36 double compute_distance_to_containing_line( double const *point_in_containing_plane );
37};
38
39#endif // EDGE_T
Definition edge_t.h:8
std::vector< double > normal
Definition edge_t.h:25
bool normal_updated
Definition edge_t.h:29
std::vector< double > direction
Definition edge_t.h:26
std::vector< double > tmp
Definition edge_t.h:28
bool above_point(double const *point, double tolerance=1.0e-12)
double const * get_support_point_ptr(unsigned int i) const
std::vector< double > center
Definition edge_t.h:27
double const * get_normal()
edge_t(double const *A, double const *B, double const *ABC)
void compute_direction()
bool center_updated
Definition edge_t.h:31
int project_point(double const *point_in_containing_plane, double *projection, double tolerance=1.0e-12)
double const * containing_plane_ptr
Definition edge_t.h:24
double const * support_points_ptr[2]
Definition edge_t.h:23
double const * get_center()
double compute_distance_to_containing_line(double const *point_in_containing_plane)
void set_support_points(double const *A, double const *B)
void set_containing_plane(double const *ABC)
void compute_normal()
double const * get_direction()
void compute_center()
bool direction_updated
Definition edge_t.h:30



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:40.
Comments on this page