About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconinside triangle (Scripts) Publisher's description

%inside_triangle is used to check if a point P is inside
%the triangle P1P2P3 or not

%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
%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|

System Requirements:

MATLAB 7.0.1 (R14SP1)
Program Release Status: New Release
Program Install Support: Install and Uninstall

inside triangle (Scripts) Tags:

Click on a tag to find related softwares

Is inside triangle (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.