|
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 |
@@ -542,7 +542,7 @@ inline void tmd::TriangleMeshDistance::_query(Result& result, const Node& node, |
542 | 542 | } |
543 | 543 | } |
544 | 544 |
|
545 | | -double tmd::point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2) |
| 545 | +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) |
546 | 546 | { |
547 | 547 | Vec3d diff = v0 - point; |
548 | 548 | Vec3d edge0 = v1 - v0; |
|
0 commit comments