Blender V4.3
BLI_math_geom_test.cc File Reference
#include "testing/testing.h"
#include "BLI_math_geom.h"
#include "BLI_math_vector_types.hh"

Go to the source code of this file.

Functions

 TEST (math_geom, DistToLine2DSimple)
 
 TEST (math_geom, DistToLineSegment2DSimple)
 
 TEST (math_geom, IsectPointTri2D)
 
 TEST (math_geom, IsectPointQuad2D)
 
 TEST (math_geom, CrossPoly)
 

Function Documentation

◆ TEST() [1/5]

TEST ( math_geom ,
CrossPoly  )

◆ TEST() [2/5]

TEST ( math_geom ,
DistToLine2DSimple  )

Definition at line 12 of file BLI_math_geom_test.cc.

References b, dist_to_line_v2(), and e.

◆ TEST() [3/5]

TEST ( math_geom ,
DistToLineSegment2DSimple  )

Definition at line 19 of file BLI_math_geom_test.cc.

References b, dist_to_line_segment_v2(), e, and sqrtf.

◆ TEST() [4/5]

TEST ( math_geom ,
IsectPointQuad2D  )

Definition at line 72 of file BLI_math_geom_test.cc.

References corner1, corner2, EXPECT_EQ(), and isect_point_quad_v2().

◆ TEST() [5/5]

TEST ( math_geom ,
IsectPointTri2D  )

Definition at line 26 of file BLI_math_geom_test.cc.

References corner1, corner2, EXPECT_EQ(), and isect_point_tri_v2().