Blender V5.3
BLI_math_geom_hh_test.cc File Reference
#include "testing/testing.h"
#include "BLI_math_geom.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_vector.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::math

Functions

Normal / Area
 blender::math::TEST (math_geom_hh, NormalQuad)
 blender::math::TEST (math_geom_hh, AreaTri)
 blender::math::TEST (math_geom_hh, CotangentTriWeight)
Planes
 blender::math::TEST (math_geom_hh, PlaneFromPointNormal)
 blender::math::TEST (math_geom_hh, PlanePointSide)
Distance & Closest Points
 blender::math::TEST (math_geom_hh, DistSquaredToLineSegment2D)
 blender::math::TEST (math_geom_hh, DistSquaredToLineSegment3D)
 blender::math::TEST (math_geom_hh, ClosestToLineSegment3D)
 blender::math::TEST (math_geom_hh, ClosestToPlaneNormalized)
 blender::math::TEST (math_geom_hh, ClosestToPlane)
 blender::math::TEST (math_geom_hh, DistSquaredToPlane)
Projection Factors
 blender::math::TEST (math_geom_hh, LinePointFactor3D)
 blender::math::TEST (math_geom_hh, LinePointFactor2D)
Matrix Utilities
 blender::math::TEST (math_geom_hh, AxisDominantToM3)
Intersection
 blender::math::TEST (math_geom_hh, IsectLineLine3D)
 blender::math::TEST (math_geom_hh, IsectLinePlane)
 blender::math::TEST (math_geom_hh, IsectPointTri2D)
 blender::math::TEST (math_geom_hh, IsectPointQuad2D)
 blender::math::TEST (math_geom_hh, IsectPointPoly)
Barycentric Coordinates
 blender::math::TEST (math_geom_hh, BarycentricWeights)
Polygon Utilities
 blender::math::TEST (math_geom_hh, PolyToTriCount)
 blender::math::TEST (math_geom_hh, AreaPoly)
 blender::math::TEST (math_geom_hh, InterpWeightsPoly)
Interpolation
 blender::math::TEST (math_geom_hh, InterpBilinearQuad)
Mapping
 blender::math::TEST (math_geom_hh, MapToSphere)

Detailed Description

Tests for #BLI_math_geom.hh.

Each test cross-checks the modern typed API against the legacy C API to ensure equivalence, and also tests degenerate / boundary conditions.

Definition in file BLI_math_geom_hh_test.cc.