Pascal's triangle was a challenge on a forum I frequent today and this is what I came up with:
This toolbox can solve any of the 6 possible subproblems associated with an oblique spherical triangle, when only 3 of the 6 angles are known.
The toolbox basically is an implementation of the set of tools developed in [Wertz, 2001],...
Simulation of Triangle wave generator, using Simelectronics.
now simulate wave propagated with index triangle
Koch Snowflake and Sierpinski Triangle Combination Fractal using recursion.
this script prints a few lines of Pascal`s triangle ;-)
The Triangle method is due to Zack (Zack GW, Rogers WE, Latt SA (1977), "Automatic measurement of sister chromatid exchange frequency", J. Histochem. Cytochem. 25 (7): 741d-deOCt53.
A line is constructed between the maximum...
3-mscripts for generation of Fern, Triangle, Dragon standard fractals, and 2 additional mscripts for generation of hexagon and pentagram based fractals, all with introductory information contained in PDF document.
%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...
Assess the quality of a triangle mesh using a simple indicator.
Calculation of intersection segment between a plane (defined with a point p0 that lies on the plane and a normal vector n of that plane) and a triangle (defined with its vertices P1, P2 and P3)
N : Normal to plane , |N| = 1,...
A Reuleaux triangle is a shape of constant width based on an equilateral triangle. Its not actually a triangle, but it has some interesting properties. Formost, constant width means that in principle it would make just as good a cross-section for...
Ray/triangle intersection using the algorithm proposed by MdoTAller and Trumbore (1997). The zip file includes one example of intersection.
References: [1] "Real Time Rendering". Third Edition. Tomas...
This simple function use three points as input which can be 2D,3D...nD. And will calculate the area and angles of this triangle / polygon.
The last version also support the precise 'Orthogonal-triangular decomposition' area calculation...
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.
A simple m file for the triangle mesh subdivision using linear interpolation. The zip file includes four examples of subdivision.
See also the URL: http://www.mathworks.com.au/matlabcentral/fileexchange/24942
DDA algorithm uses fast interpolation and rounding method to implement rasterization of lines, triangle and polygons. This technique has been used here to produce a straight line.
Calculate the distance of a given point P from a triangle TRI. Point P is a row vector of the form 1x3. The triangle is a matrix formed by three rows of points TRI = [P1;P2;P3] each of size 1x3. dist = pointTriangleDistance(TRI,P)...
Bindings for Nvidia's NvTriStrip triangle stripification library.
Golden Triangle car matching is software to help people of a specified area, to locate appropriate matchs for car pooling. |