|
1 | 1 | /*
|
2 | 2 | The MIT License (MIT)
|
3 | 3 |
|
4 |
| - Copyright (c) 2021 José Antonio Fernández Fernández |
| 4 | + Copyright (c) 2021 José Antonio Fernández Fernández |
5 | 5 |
|
6 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 | 7 | of this software and associated documentation files (the "Software"), to deal
|
@@ -68,7 +68,7 @@ namespace tmd
|
68 | 68 |
|
69 | 69 | // Point-Triangle distance definitions
|
70 | 70 | enum class NearestEntity { V0, V1, V2, E01, E12, E02, F };
|
71 |
| - double point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2); |
| 71 | + static double point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2); |
72 | 72 | // -----------------------------------
|
73 | 73 |
|
74 | 74 | // Struct that contains the result of a distance query
|
@@ -524,7 +524,7 @@ inline void tmd::TriangleMeshDistance::_query(Result& result, const Node& node,
|
524 | 524 | }
|
525 | 525 | }
|
526 | 526 |
|
527 |
| -double tmd::point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2) |
| 527 | +static double tmd::point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2) |
528 | 528 | {
|
529 | 529 | Vec3d diff = v0 - point;
|
530 | 530 | Vec3d edge0 = v1 - v0;
|
|
0 commit comments