19 lines
628 B
C++
19 lines
628 B
C++
#pragma once
|
|
#include "vde/core/point.h"
|
|
#include "vde/core/line.h"
|
|
#include "vde/core/plane.h"
|
|
#include "vde/core/triangle.h"
|
|
|
|
namespace vde::core {
|
|
|
|
double distance(const Point3D& a, const Point3D& b);
|
|
double distance(const Point3D& p, const Line3D<double>& line);
|
|
double distance(const Point3D& p, const Segment3D<double>& seg);
|
|
double distance(const Point3D& p, const Plane<double>& plane);
|
|
double distance(const Point3D& p, const Triangle<double>& tri);
|
|
|
|
Point3D closest_point(const Point3D& p, const Triangle<double>& tri);
|
|
Point3D closest_point(const Point3D& p, const Segment3D<double>& seg);
|
|
|
|
} // namespace vde::core
|