Computes the shortest distance between two line segments given start and end points for each. Adapts the algorithm found on Dan Sunday's website (http://softsurfer.com/Archive/algorithm_01...ment_to_Segment ).
Usage: Input the start and end x,y,z coordinates for two line segments. p1, p2 are [x,y,z] coordinates of first line segment and p3,p4 are for second line segment.
Output: scalar minimum distance...
This program calculates the distance between two locations (latitude and longitude) using the Haversine formula. The Haversine formula gives the shortest distance between two points over the earth's surface, ignoring elevation, hills, etc...
Calculate Distance Between Two Points Us Visit | Rate | Error is a multi-platform compatible program to calculate the distance between two locations. It can be used for store locator or radius calculation. Free sample source codes in PHP, ASP,...
The GUI framed in this m-file will find out the Shortest Route in the network Topologies. First, User have to load the network (Adjacent matrix). Then run the algorithm and fill the information in GUI like Source node, Destination Node and total...
In this code we will develop an Android App to draw route on google maps (namely Google Maps Draw Route). Here we will first add our location on google map and then allow user to select two points. A marker will be added to those two points and a...
SHPATH - shortest path with obstacle avoidance (ver 1.3) Given a "terrain" matrix consisting of zeros (for open space) and ones (for obstacles), this function computes the shortest path between two specified points while...
A Coding Convention for C Code is a multi-platform compatible script that makes it easier for us to read each other's code, here are a few guidelines to follow when writing C code.
Calculating intervals between two dates is a tutorial which helps the users to find the intervals like time intervals, first day of week, first day of year, etc., between two particular dates on their websites. The procedure of the tutorial is...
This function will compute the great circle distance between two points on a sphere of uniform radius using the Vincenty formula. At minimum, four inputs are required: lat1, long1, lat2, long2. Optionally, a fifth parameter (r) can be specified....
This function computes the minimum euclidean distance between two polygons P1 & P2.
- for vertex-vertex case
This routine will shade the area of a 2-D plot between two user defined vectors. Simply pass the two vectors, and their corresponding horizontal coordinates, select your fill color and transparency level and viola! You have a figure that is...
Function uses algorithm from Dan Sunday internet site http://softsurfer.com/Archive/algorithm_01...ment_to_Segment L1, L2 includes two points in matrix of 2*n where n are dimensions (3 in 3D). d - shortest distance between two...
Generate Pascal and/or C code starting from a simple HTML-like file. You insert then the output in your program and with a simple call to a function you'll see on the screen the linked HTML! In the future the format will be HTML/XML.
C Code Completer enhance writing C code with auto popupping words, it also shows parameter list, the header file they are defined in, and what they do. This can be also used to compile if Borland Turbo C is present in the same directory.Based on .NET
The AreaCodeDistance is a simple distance calculator script with which you can calculate the distance between two cities or states by simply entering the telephone area codes. The result will be displayed in miles and is only approximate. The...
This simple function counts Lines Of Code in Python files in two ways: maximal size (source LOC) with blank lines and comments, minimal size (logical LOC) stripping same. It includes a simplified version of my directory tree walker from recipe 52664.
Given a c file withe lot of comments. Ex: c code generated automatically. removing comments will make expose the source code. Use this m file for that
tKL between two multivariate normal probability density functions. This program implements the tKL between two multivariate normal probability density functions following the references: Baba C. Vemuri, Meizhu Liu, Shun-Ichi...
This project is a c++ code weaver, mainly based on open source tools. It may run on every platform supporting c++. Unlike aspectc++, taco join points are some of the control structures encountered in c++.
Converts non-visual Delphi (Object Pascal) source code units to equivalent C# code. |