[Bf-committers] distance along line scalar - labda or lambda?

Campbell Barton ideasman42 at gmail.com
Tue Dec 11 00:15:14 CET 2012


Theres an inconsistency I noticed yesterday maybe someone here knows
whats going on...

We have many functions that get a float value that represents one
points position between 2 others.

./source/blender/blenlib/intern/math_geom.c
 dist_squared_to_line_segment_v2() - uses `labda`
 closest_to_line_v2() - uses `lambda`

./source/blender/blenkernel/intern/curve.c
 cu_isectLL()  - uses `labda`
./source/blender/blenkernel/intern/dynamicpaint.c
 dynamicPaint_findNeighbourPixel() - uses `lambda`

In the context of point-along-segment-scalar, anyone know which ones
correct? (or at least a convention).

It looks like lambda term was added later and a typo of labda, but I
can't find anything online which mentions labda being used in this
context.

-- 
- Campbell


More information about the Bf-committers mailing list