3 #include "testing/testing.h"
7 TEST(math_geom, DistToLine2DSimple)
9 float p[2] = {5.0f, 1.0f},
a[2] = {0.0f, 0.0f},
b[2] = {2.0f, 0.0f};
14 TEST(math_geom, DistToLineSegment2DSimple)
16 float p[2] = {3.0f, 1.0f},
a[2] = {0.0f, 0.0f},
b[2] = {2.0f, 0.0f};
float dist_to_line_segment_v2(const float p[2], const float l1[2], const float l2[2])
float dist_to_line_v2(const float p[2], const float l1[2], const float l2[2])
TEST(math_geom, DistToLine2DSimple)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
T distance(const T &a, const T &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)