|
V3FIT
|
12 #include "vector3d.hpp"
static const double y_min(const vertex &v1, const vertex &v2, const vector3d &p)
Minimum distance in the y direction.
vertex * next
Vertex next vertex.
static void print(vertex *start)
Print out all vertices.
static const double a(const vertex &v1, const vertex &v2)
a coefficient.
static const double b(const vertex &v1, const vertex &v2)
b coefficient.
const vector3d point
Vertex point.
static const double direction(const vertex &v, const vector3d &n, const vector3d &p)
Finds which side of the limiter face the point is on.
vertex(const vector3d point_)
vertex constructor.
~vertex()
vertex destructor.
static const double length(const vertex &v1, const vertex &v2, const vector3d &p)
Distance to a limiter face.
static const vector3d get_normal(const vertex &v1, const vertex &v2)
Normal to a line.
static const bool in_range(const vertex &v1, const vertex &v2, const double x, const double y)
Finds if the line to the point is in range.
static const double c(const vertex &v1, const vertex &v2)
c coefficient.
static void distance(vertex *start, const vector3d &p, std::vector< double > &d)
Find the distances to the limiter.
vertex * last
Vertex last vertex.
static const double x_min(const vertex &v1, const vertex &v2, const vector3d &p)
Minimum distance in the x direction.
void insert(vertex *v)
Insert a new vertex.