line-segment Questions
10
Solved
Finding the point of intersection for two 2D line segments is easy; the formula is straight forward. But finding the point of intersection for two 3D line segments is not, I afraid.
What is the alg...
Gasparo asked 23/2, 2010 at 7:49
3
Solved
Is there any existing Bentley-Ottmann Algorithm Implementation/library in C# or Java?
Subtraction asked 13/11, 2011 at 17:19
1
Solved
I have used the code that has been posted here. Here is the code again:
from __future__ import division
def line(p1, p2):
A = (p1[1] - p2[1])
B = (p2[0] - p1[0])
C = (p1[0]*p2[1] - p2[0]*p1[1...
Tragedian asked 8/9, 2016 at 15:24
1
Solved
I have two sets of n nodes. Now I want to connect each node from one set with another node from the other set. The resulting graph should have no intersections.
I know of several sweep line algori...
Magnuson asked 29/6, 2016 at 8:53
3
Solved
Suppose I have a set of 2d line segments that are all connected. I need an algorithm that finds the outermost segments in the set. That is, the minimal subset that bounds the same region.
Note: t...
Mensuration asked 1/7, 2015 at 18:38
2
Solved
Given two collinear line segments AB and CD, how do I find if they overlap? How do I locate the start and end points of the overlap?
Below is the approach I am using. I am first ensuring that A &l...
Thunderstorm asked 31/3, 2013 at 5:59
1
I have posted a related but not the same question here https://stackoverflow.com/questions/8279698/measuring-length-of-dna-fibers-from-an-image-of-single-molecules
Background:
I have many images t...
Title asked 30/11, 2011 at 23:39
1
Solved
In Java, how would one employ PathIterator to iterate through the line segments that constrain an Area? The Area is bound only by lines (but curve support wouldn't hurt).
The method should return ...
Burdened asked 15/11, 2011 at 22:38
56
Solved
I need a basic function to find the shortest distance between a point and a line segment. Feel free to write the solution in any language you want; I can translate it into what I'm using (Javascrip...
Monocot asked 11/5, 2009 at 17:47
1
© 2022 - 2024 — McMap. All rights reserved.