586 reputation
212
bio website
location
age
visits member for 1 year, 11 months
seen 14 hours ago

2d
awarded  Teacher
2d
answered Is there any Robotic Package in Mathematica?
Nov
21
comment How to check if a line segment intersects with a polygon?
@ rcollyer, for the case of contact, they give different answers. e.g. Line[{{9.10, 11.34}, {14, 9}}] (contacts with the polygon)RegionIntersection gives True, while Graphics`Mesh`IntersectQ gives False. How to include the contact case into the intersect? When the line lies completely inside in the polygon they also give different answers.
Nov
21
comment How to check if a line segment intersects with a polygon?
@ rcollyer, your method is about 60 times faster than using RegionIntersection in V10
Nov
21
accepted How to check if a line segment intersects with a polygon?
Nov
20
comment How to check if a line segment intersects with a polygon?
@Rahul, my bad. I thought "bounding the polygon" means convex hull.
Nov
20
comment How to check if a line segment intersects with a polygon?
@Rahul, the short red line seems intersect with segment bounding the polygon.
Nov
20
revised How to check if a line segment intersects with a polygon?
added 2 characters in body
Nov
20
revised How to check if a line segment intersects with a polygon?
added 333 characters in body
Nov
20
comment How to check if a line segment intersects with a polygon?
@Daniel Lichtblau, unfortunately that fails if the polygon is nonconvex.
Nov
20
comment How to check if a line segment intersects with a polygon?
@Öskå Thanks. I'm working with v9, but I will check v10.
Nov
20
asked How to check if a line segment intersects with a polygon?
Nov
12
comment How to form a block-diagonal Matrix from a list of matrices?
@Mr.Wizard, thanks.
Nov
12
revised How to form a block-diagonal Matrix from a list of matrices?
added 23 characters in body
Nov
11
comment Find the nearest locations for multiple points
the speed is reduced by EdgeCost
Oct
31
awarded  Notable Question
Oct
27
accepted Find the nearest locations for multiple points
Oct
24
awarded  Nice Question
Oct
23
comment Find the nearest locations for multiple points
@ ybeltukov, your answer is helpful and enlightening.The first step is ‘Closest pair of points problem’. But a simple counterexample is for 2 hole-ball pairs with the given coordinates: holes = {{0, 0}, {0, 2}}; balls = {{0, 1.01}, {2, 2}}; I think the farest balls should be considered first.
Oct
23
revised Find the nearest locations for multiple points
added 7 characters in body