Skip to content

Commit 34ef445

Browse files
committed
Fix the typo
In the comment, "AX+BY+C" was typed as "AX+BC+C".
1 parent 567382b commit 34ef445

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/geom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ twin_dfixed_t _twin_distance_to_line_squared(twin_spoint_t *p,
2929
* B = (x1 - x2)
3030
* C = (y1x2 - x1y2)
3131
*
32-
* distance² = (AX + BC + C)² / (A² + B²)
32+
* distance² = (AX + BY + C)² / (A² + B²)
3333
*/
3434
twin_dfixed_t A = p2->y - p1->y;
3535
twin_dfixed_t B = p1->x - p2->x;

tools/font-edit/sfit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ double distance_to_line(pt_t *p, pt_t *p1, pt_t *p2)
9595
* B = (x1 - x2)
9696
* C = (y1x2 - x1y2)
9797
*
98-
* distance² = (AX + BC + C)² / (A² + B²)
98+
* distance² = (AX + BY + C)² / (A² + B²)
9999
*/
100100
double A = p2->y - p1->y;
101101
double B = p1->x - p2->x;

0 commit comments

Comments
 (0)