Code covered by the BSD License  

Highlights from
Points On Line

Be the first to rate this file! 14 Downloads (last 30 days) File Size: 4.43 KB File ID: #32564 Version: 1.1
image thumbnail

Points On Line



18 Aug 2011 (Updated )

Linearly spaced points between two point and ,point in Convex Hull test.

| Watch this File

File Information

pointsOnLine:Linearly spaced points between two points in space . This function uses direction vector of two point to calculate points between .

inConvHull:function to test a point inside a 3d Convex Hull
zip file contain

pointsOnLine.m : creates linearly spaced points .

testpointsOnLine.m : example showing the use of pointsOnLine function .

sphericalDodecahedron.m : projection of dodecahedron on sphere . Uses this function to create points between two vertex.

inConvHull.m :function test a point whether it is inside a 3d convex hull or not.

testInHull.m :script to test inConvHull function.


Cubed Sphere inspired this file.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
30 Oct 2011 Ankur Pawar

It is generalized but not fast.

tic,points = pointsOnLine([2 4 5],[9 9 9],500);toc
Elapsed time is 0.000351 seconds

tic,points = interp1([0;1], [2 4 5;9 9 9], linspace(0,1,500));toc
Elapsed time is 0.001596 seconds

Comment only
18 Oct 2011 Sven

Sven (view profile)

Please note that this function can be generalised with a speedup by:

points = interp1([0;1], [point1;point2], linspace(0,1,numPoints));

Comment only
29 Nov 2011 1.1

Included a new function inConvHull.m for in convex hull test.

Contact us