Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

# inside triangle 1.0

Date Added: July 06, 2013  |  Visits: 249

%inside_triangle is used to check if a point P is inside%the triangle P1P2P3 or not.%%Inputs: P, P1, P2 and P3 are vectors of length 2 or three of the% form [x y z] or [x y]%%Output: True%True=1 => P is on or inside P1P2P3%True=0 => P is outside P1P2P3%%Example:%True=inside_triangle([0.5 0.5],[0 0],[0 2],[2 0]);%%The following algorithm is implemented% If P is ON or INSIDE the triangle%% Area(PP1P2) + Area(PP2P3) + Area(PP3P1) = Area(P1P2P3)%% If P is OUTSIDE then,%% Area(PP1P2) + Area(PP2P3) + Area(PP3P1) > Area(P1P2P3)%% Area of a triangle can be found using the determinant:%% Area = abs(1/2 * |x1 y1 1| )% |x2 y2 1|% |x3 y3 1|%

 Requirements: No special requirements Platforms: Matlab Keyword: Abs,  Algorithm,  Areap,  Areapp,  Determinant,  Implemented,  Inside Users rating: 0/10

USER REVIEWS
 More Reviews or Write Review
INSIDE TRIANGLE RELATED
 Development Tools  -  Lucas & Kanade Pyramidal Refined Optical Flow implementation 1.0 This algorithm has also been implemented in CUDA language for parallel execution, which allows to perform real-time optical flow. See CUDA Zone for more details. 71.68 KB Development Tools  -  Matrix Permanent using Ryser Algorithm 1.0 Matrix permanent calculated using the fast Ryser Algorithm.Uses the Ryser Formula to calculate the permanent of a matrix. It is O((n^2)(2^n)) which is much faster than the naive algorithm O(n!n). The determinate of a matrix is defined as the... 10 KB Development Tools  -  Spatial Correlation Generator with Latin Hipercube Sampling and Cholesky Decomposition 1.0 It generates a stochastic field on a squared space. Samples are created by Latin hypercube sampling and the spatial correlation is performed by an algorithm based on Cholesky decomposition. Example inside. 10 KB Database Tools  -  MPTTA for PHP and MySQL 1.0 MPTTA for PHP and MySQL is a script can manage hierarchic trees of information stored in a MySQL database.It can add, move or delete branches inside a database tree created using the Modified Preorder Tree Traversal Algorithm described by Joe... 10 KB File Cataloguers  -  Seeker 2.0.0.19 Seeker's has a ultra-fast file search engine on top of a powerful file search algorithm. Searching for files or inside of files Seeker can handle it.Seeker not only searches for files or inside files, Seeker lets you replace text inside of... 2.88 MB File Utilities  -  GSmartControl 0.8.6 GSmartControl is a graphical user interface for smartctl (from smartmontools package), which is a tool for querying and controlling SMART (Self-Monitoring, Analysis, and Reporting Technology) data on modern hard disk drives. It allows you to... 1.2 MB Web Authoring  -  Advanced Flash 3D Carousel XML 1.0 This is a XML AS3.0 3D Carousel component built using the 3D capabilities of Flash Player 10.The source files (for advanced users) are available only for CS4 or CS5 and future version of flash.It supports image files (png, jpg, gif) or SWF... Development Editors  -  Papervision 3D Cover Flow 1 This is a Papervision 3D Cover Flow component built using the papervision 3d engine. This product also includes the source files. It supports image files (png, jpg, gif) and SWF files. This cover flow displays items in real 3D arranging them in... 4.88 MB Development Editors  -  Majestic 3D Cover Flow - Vertical version 1.0 This is the Vertical Version of the XML AS3.0 3d Cover Flow component built using the 3D capabilities of Flash Player 10.The source files (for advanced users) are available only for CS4.It supports image files (png, jpg, gif) or SWF files.This... 488 KB Entertainment  -  Code reviewer pro C# edition 1.1.0.0 In many organizations, code reviews play a pivotal role in promoting best practices across teams. It is said that the level of quality of code that has been peer reviewed is orders of magnitudes higher than code that was not peer... 1024 KB