You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 37b5d7b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: 2d_line.html
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,10 @@ <h1>2D line<a class="headerlink" href="#d-line" title="Permalink to this headlin
173
173
<dd><p>Test if point is in line</p>
174
174
<dlclass="field-list simple">
175
175
<dtclass="field-odd">Parameters</dt>
176
-
<ddclass="field-odd"><p><strong>p1</strong> (<em>array_like</em><em>(</em><em>2</em><em>) or </em><em>array_like</em><em>(</em><em>3</em><em>)</em>) – point to test</p>
176
+
<ddclass="field-odd"><ulclass="simple">
177
+
<li><p><strong>p1</strong> (<em>array_like</em><em>(</em><em>2</em><em>) or </em><em>array_like</em><em>(</em><em>3</em><em>)</em>) – point to test</p></li>
178
+
<li><p><strong>tol</strong> (<em>float</em>) – tolerance in units of eps, defaults to 10</p></li>
179
+
</ul>
177
180
</dd>
178
181
<dtclass="field-even">Returns</dt>
179
182
<ddclass="field-even"><p>True if point lies in the line</p>
@@ -220,7 +223,10 @@ <h1>2D line<a class="headerlink" href="#d-line" title="Permalink to this headlin
220
223
<dd><p>Intersection with line</p>
221
224
<dlclass="field-list simple">
222
225
<dtclass="field-odd">Parameters</dt>
223
-
<ddclass="field-odd"><p><strong>other</strong> (<aclass="reference internal" href="classes-2d.html#spatialmath.geom2d.Line2" title="spatialmath.geom2d.Line2"><em>Line2</em></a>) – another 2D line</p>
226
+
<ddclass="field-odd"><ulclass="simple">
227
+
<li><p><strong>other</strong> (<aclass="reference internal" href="classes-2d.html#spatialmath.geom2d.Line2" title="spatialmath.geom2d.Line2"><em>Line2</em></a>) – another 2D line</p></li>
228
+
<li><p><strong>tol</strong> (<em>float</em>) – tolerance in units of eps, defaults to 10</p></li>
229
+
</ul>
224
230
</dd>
225
231
<dtclass="field-even">Returns</dt>
226
232
<ddclass="field-even"><p>intersection point in homogeneous form</p>
@@ -240,13 +246,14 @@ <h1>2D line<a class="headerlink" href="#d-line" title="Permalink to this headlin
<spanclass="sig-name descname"><spanclass="pre">intersect_segment</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">p1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p2</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/spatialmath/geom2d.html#Line2.intersect_segment"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#spatialmath.geom2d.Line2.intersect_segment" title="Permalink to this definition"></a></dt>
249
+
<spanclass="sig-name descname"><spanclass="pre">intersect_segment</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">p1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p2</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">tol</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">10</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/spatialmath/geom2d.html#Line2.intersect_segment"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#spatialmath.geom2d.Line2.intersect_segment" title="Permalink to this definition"></a></dt>
244
250
<dd><p>Test for line intersecting line segment</p>
245
251
<dlclass="field-list simple">
246
252
<dtclass="field-odd">Parameters</dt>
247
253
<ddclass="field-odd"><ulclass="simple">
248
254
<li><p><strong>p1</strong> (<em>array_like</em><em>(</em><em>2</em><em>) or </em><em>array_like</em><em>(</em><em>3</em><em>)</em>) – start of line segment</p></li>
249
255
<li><p><strong>p2</strong> (<em>array_like</em><em>(</em><em>2</em><em>) or </em><em>array_like</em><em>(</em><em>3</em><em>)</em>) – end of line segment</p></li>
256
+
<li><p><strong>tol</strong> (<em>float</em>) – tolerance in units of eps, defaults to 10</p></li>
250
257
</ul>
251
258
</dd>
252
259
<dtclass="field-even">Returns</dt>
@@ -295,7 +302,7 @@ <h1>2D line<a class="headerlink" href="#d-line" title="Permalink to this headlin
295
302
296
303
<divrole="contentinfo">
297
304
<p>© Copyright 2020-, Peter Corke..
298
-
<spanclass="lastupdated">Last updated on 28-Nov-2023.
305
+
<spanclass="lastupdated">Last updated on 30-Nov-2023.
0 commit comments