Skip to content

Commit

Permalink
Merge pull request #43 from weihsinyeh/fix-typo
Browse files Browse the repository at this point in the history
Fix the typo
  • Loading branch information
jserv authored Sep 7, 2024
2 parents 567382b + 34ef445 commit 6f9166b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/geom.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ twin_dfixed_t _twin_distance_to_line_squared(twin_spoint_t *p,
* B = (x1 - x2)
* C = (y1x2 - x1y2)
*
* distance² = (AX + BC + C)² / (A² + B²)
* distance² = (AX + BY + C)² / (A² + B²)
*/
twin_dfixed_t A = p2->y - p1->y;
twin_dfixed_t B = p1->x - p2->x;
Expand Down
2 changes: 1 addition & 1 deletion tools/font-edit/sfit.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ double distance_to_line(pt_t *p, pt_t *p1, pt_t *p2)
* B = (x1 - x2)
* C = (y1x2 - x1y2)
*
* distance² = (AX + BC + C)² / (A² + B²)
* distance² = (AX + BY + C)² / (A² + B²)
*/
double A = p2->y - p1->y;
double B = p1->x - p2->x;
Expand Down

0 comments on commit 6f9166b

Please sign in to comment.