Search
Code Directory
ASP
ASP.NET
C/C++
CFML
CGI/PERL
Delphi
Development
Flash
HTML
Java
JavaScript
Pascal
PHP
Python
SQL
Tools
Visual Basic & VB.NET
XML
New Code
 C# QR Code Generator 4.0.2.2 Salesforce WordPress Customer Portal 3.2.0 Single Leg MLM 1.2.1 OzGIS 14.6 Quick Maps For Dynamics CRM 3.1 Job Board Software 4.2 PHP Real Estate Script 1.3.2 IP2Location Geolocation Database April.2019 dbForge Data Generator for Oracle 2.1 VisualNEO Web 2018.12.15 SentiMask SDK Trial 1.0.0 OrgChart JS 4.6.4 dotConnect for BigCommerce 1.8 FedEx Smart Shipping For Magento 1.0.0 Database Workbench Pro 5.6.2.311
Top Code
 MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0 Job Board Software 4.2 MLM Unilevel Plan Script 1.0.4 Easynews PHP for Scripts 1.7.1 MLM Unilevel Plan Software 1.0.2 AppControls 3.7.4 Comag Channel List Editor 1.0 Hangman Game 1.1 HTMLPad 2007 Pro 8.3 Tree data structure as a MATLAB class 1.0 FlowChartX 2.2 Travel Agency Script 2.0.1 Gif4J Light 1.0 riskcalc 1.0 DBSync for MS Access & MSSQL 2.0.0
Top Rated
 VisualNEO Web 2018.12.15 Paste phpSoftPro 1.4.1 Deals and Discounts Website Script 1.0.2 ADO.NET Provider for ExactTarget 1.0 Solid File System OS edition 5.1 Classified Ad Lister 1.0 Aglowsoft SQL Query Tools 8.2 Invoice Manager by PHPJabbers 3.0 ICPennyBid Penny Auction Script 4.0 PHP Review Script 1.0 ATN Resume Finder 2.0 ATN Site Builder 3.0 Availability Booking Calendar PHP 1.0 PHP GZ Blog Script 1.1 ATN Jobs Software 4.0
Position of a point and a straight line or segment 1.0
File ID: 86597

Position of a point and a straight line or segment 1.0
File Size: 10.0 KB
 User Rating: (1 rating)
 Submit Rating:
Position of a point and a straight line or segment 1.0 Description
Description: Position determines the relative position of a planar point C with respect to
a planar segment joining A and B. This is not intended for 3D points.
Pos=0 =>the point C is collinear with A and B
Pos=1=>the point C is above the segment
Pos=-1=>the point C is below the segment
Example
A=[0 0 0]; B=[1 1 0]; C=[1 0 0];
Pos=Position(B,A,C)

Since C is below AB then Pos=-1
Note: in case of 2D points, you still have to include the z-ordinate, i.e
if you have a point S=[1 2], add a zero to get S=[1 2 0], and use the same
procedure as the above example

Related: pos dpositionbac, pos dgtthe, Pos, Procedure, zordinate

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

More Similar Code

### Methods for calculating precise... - Roland PihlakasTools / Development Tools

Disclosed are methods to compute the precise value of the logarithm of a sum and the logarithm of a subtraction.

A number of practical problems can result in having too big or small values in intermediate values of a calculation. Then one tries to take logarithm of these values and operate on logarithms instead.

In the case: log (p d-deD? q) = log p + log q is very easy to compute, but the problem is then to compute (or...

### Circumcircle of a triangle 1.0 - Bishnu LamichhanePython / Multimedia

The function circumcircle takes input as the coordinates of the three vertices of a triangle and compute the circum center and circum radius by using the formula in terms of the length of sides and area of triangle and plot the circumcircle.

### isinmesh 1.0 - jon anderTools / Development Tools

Simple function that tells if a point is inside of a mesh, be it concave or convex
The algorithm just finds the intersection points between the facets and a vertical line that passes through the original point. Depending on the relative...

### estimateRigidTransform 1.0 - Babak TaatiTools / Development Tools

This is a simple utility for estimating the rigid transformation that aligns two sets of 3D point clouds, given 3 (or more) point matches.

Input: two sets of 3D point clouds (P1 and P2)
Output: homogeneous transformation that...

### getpoint 1.0 - Harry LeePython / Multimedia

Simple widget to get the coordinates of a point in a figure or axis.

Just select the current figure and type getpoint. A button with two fields will appear in the upper right corner. click the button, then the point and the coordinates...

### fillPage 1.0 - Richard QuistPython / Multimedia

fillPage allows you to easily adjust properties that affect the size and position of a figure to be printed/exported, so that the generated output will "fill" the page within specified (or default) margins.

fillPage returns...

### satpos 1.0 - SatposDevelopment / Libraries

This library is used to calculate the position of a satellite or the moon on any geographical location on the earth's surface. The Library is writte in C++ and OOP.

### simple string checksum  - Yosef GoldPython / Miscellaneous

This one line function adds up the ascii values of a string and returns the total as a checksum. Also included is a variation which returns the checksum mod 256 (so it can be used as a single byte).
The same technique can be used to add up a...

### XMLTV Stylesheets and Tools 1.0 - XmltvtoolsDevelopment / Data Formats

A set of XML Stylesheets and command-line tools for use with data from the XMLTV Project. Includes display stylesheets and some .net command line tools for transforming data.

### Normal gravity value using... - Cuneyt AydinTools / Development Tools

NGRAV computes the normal gravity value (in m/sec^2 unit) of a point with the geodetic latitude defined in GRS80 ellipsoid,which is the more up-to-date and internationally adopted reference ellipsoid.

The normal gravity value is used...

User Review for Position of a point and a straight line or segment