Skip to content

Commit

Permalink
Fixing typos in documentation of `regridding.geometry.two_line_segmen…
Browse files Browse the repository at this point in the history
…t_intersection_parameters()`.
  • Loading branch information
byrdie committed Dec 2, 2023
1 parent 3e77f4b commit 948ee1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions regridding/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,16 @@ def two_line_segment_intersection_parameters(
.. math::
s &= \text{sdet} / \text{det}
s &= \text{sdet} / \text{det} \\
t &= \text{tdet} / \text{det},
which can be used to compute the intersection :math:`(x, y)` using the
parametric equations of the lines:
.. math::
x = (1 - s) * x_{\text{q1}} + s * x_{\text{q2}} = (1 - t) * x_{\text{p1}} + t * x_{\text{p2}}
y = (1 - s) * y_{\text{q1}} + s * y_{\text{q2}} = (1 - t) * y_{\text{p1}} + t * y_{\text{p2}}.
x &= (1 - s) * x_{\text{q1}} + s * x_{\text{q2}} = (1 - t) * x_{\text{p1}} + t * x_{\text{p2}} \\
y &= (1 - s) * y_{\text{q1}} + s * y_{\text{q2}} = (1 - t) * y_{\text{p1}} + t * y_{\text{p2}}.
The quantities :math:`s` and :math:`t` are not computed directly
because doing so leads to a loss of precision.
Expand Down

0 comments on commit 948ee1e

Please sign in to comment.