Mercurial > hg > orthanc-stone
comparison OrthancStone/Resources/Computations/IntersectSegmentAndHorizontalLine.py @ 1589:8c5f9864545f
adding missing headers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Oct 2020 16:59:23 +0200 |
parents | 244ad1e4e76a |
children | 8563ea5d8ae4 |
comparison
equal
deleted
inserted
replaced
1588:b91ea9566d16 | 1589:8c5f9864545f |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | |
3 # Stone of Orthanc | |
4 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
5 # Department, University Hospital of Liege, Belgium | |
6 # Copyright (C) 2017-2020 Osimis S.A., Belgium | |
7 # | |
8 # This program is free software: you can redistribute it and/or | |
9 # modify it under the terms of the GNU Affero General Public License | |
10 # as published by the Free Software Foundation, either version 3 of | |
11 # the License, or (at your option) any later version. | |
12 # | |
13 # This program is distributed in the hope that it will be useful, but | |
14 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 # Affero General Public License for more details. | |
17 # | |
18 # You should have received a copy of the GNU Affero General Public License | |
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 | |
2 | 21 |
3 from sympy import * | 22 from sympy import * |
4 | 23 |
5 # Intersection between the 2D line segment (prevX,prevY)-(curX,curY) and the | 24 # Intersection between the 2D line segment (prevX,prevY)-(curX,curY) and the |
6 # horizontal line "y = y0" using homogeneous coordinates | 25 # horizontal line "y = y0" using homogeneous coordinates |