In geometry, the trilinear coordinates x : y : z of a point relative to a given triangle describe the relative directed distances from the three sidelines of the triangle. Trilinear coordinates are an example of homogeneous coordinates. The ratio x : y is the ratio of the perpendicular distances from the point to the sides (extended if necessary) opposite vertices A and B respectively; the ratio y : z is the ratio of the perpendicular distances from the point to the sidelines opposite vertices B and C respectively; and likewise for z : x and vertices C and A. In the diagram at right, the trilinear coordinates of the indicated interior point are the actual distances (a', b', c'), or equivalently in ratio form, ka' : kb' : kc' for any positive constant k. If a point is on a sideline of the reference triangle, its corresponding trilinear coordinate is 0. If an exterior point is on the opposite side of a sideline from the interior of the triangle, its trilinear coordinate associated with that sideline is negative. It is impossible for all three trilinear coordinates to be non-positive.
Notation The ratio notation x:y:z for trilinear coordinates is often used in preference to the ordered triple notation (x,y,z), with the latter reserved for triples of directed distances (a′,b′,c′) relative to a specific triangle. The trilinear coordinates x:y:z, can be rescaled by any arbitrary value without affecting their ratio. The bracketed, comma-separated triple notation (x,y,z) can cause confusion because conventionally this represents a different triple than e.g. (2x,2y,2z), but these equivalent ratios x:y:z=2x:2y:2z represent the same point.
Examples The trilinear coordinates of the incenter of a triangle △ABC are 1 : 1 : 1; that is, the (directed) distances from the incenter to the sidelines BC, CA, AB are proportional to the actual distances denoted by (r, r, r), where r is the inradius of △ABC. Given side lengths a, b, c we have:
Note that, in general, the incenter is not the same as the centroid; the centroid has barycentric coordinates 1 : 1 : 1 (these being proportional to actual signed areas of the triangles △BGC, △CGA, △AGB, where G = centroid.) The midpoint of, for example, side BC has trilinear coordinates in actual sideline distances (0,Δb,Δc) for triangle area Δ, which in arbitrarily specified relative distances simplifies to 0 : ca : ab. The coordinates in actual sideline distances of the foot of the altitude from A to BC are (0,2ΔacosC,2ΔacosB), which in purely relative distances simplifies to 0 : cos C : cos B.
Formulas
Collinearities and concurrencies Trilinear coordinates enable many algebraic methods in triangle geometry. For example, three points P=p:q:rU=u:v:wX=x:y:z are collinear if and only if the determinant D=|pqruvwxyz| equals zero. Thus if x : y : z is a variable point, the equation of a line through the points P and U is D = 0. From this, every straight line has a linear equation homogeneous in x, y, z. Every equation of the form lx+my+nz=0 in real coefficients is a real straight line of finite points unless l : m : n is proportional to a : b : c, the side lengths, in which case we have the locus of points at infinity. The dual of this proposition is that the lines pα+qβ+rγ=0uα+vβ+wγ=0xα+yβ+zγ=0 concur in a point (α, β, γ) if and only if D = 0. Also, if the actual directed distances are used when evaluating the determinant of D, then the area of triangle △PUX is KD, where K=−abc8Δ2 (and where Δ is the area of triangle △ABC, as above) if triangle △PUX has the same orientation (clockwise or counterclockwise) as △ABC, and K=−abc8Δ2 otherwise.
Parallel lines Two lines with trilinear equations lx+my+nz=0 and l′x+m′y+n′z=0 are parallel if and only if |lmnl′m′n′abc|=0, where a, b, c are the side lengths.
Angle between two lines The tangents of the angles between two lines with trilinear equations lx+my+nz=0 and l′x+m′y+n′z=0 are given by ±(mn′−m′n)sinA+(nl′−n′l)sinB+(lm′−l′m)sinCll′+mm′+nn′−(mn′+m′n)cosA−(nl′+n′l)cosB−(lm′+l′m)cosC. Thus they are perpendicular if ll′+mm′+nn′−(mn′+m′n)cosA−(nl′+n′l)cosB−(lm′+l′m)cosC=0.
Altitude The equation of the altitude from vertex A to side BC is ycosB−zcosC=0.
Line in terms of distances from vertices The equation of a line with variable distances p, q, r from the vertices A, B, C whose opposite sides are a, b, c is apx+bqy+crz=0.
Actual-distance trilinear coordinates The trilinears with the coordinate values a', b', c' being the actual perpendicular distances to the sides satisfy aa′+bb′+cc′=2Δ for triangle sides a, b, c and area Δ. This can be seen in the figure at the top of this article, with interior point P partitioning triangle △ABC into three triangles △PBC, △PCA, △PAB with respective areas 12aa′,12bb′,12cc′.
Distance between two points The distance d between two points with actual-distance trilinears ai : bi : ci is given by d2sin2C=(a1−a2)2+(b1−b2)2+2(a1−a2)(b1−b2)cosC or in a more symmetric way d2=abc4Δ2(a(b1−b2)(c2−c1)+b(c1−c2)(a2−a1)+c(a1−a2)(b2−b1)).
Distance from a point to a line The distance d from a point a' : b' : c' , in trilinear coordinates of actual distances, to a straight line lx+my+nz=0 is d=la′+mb′+nc′l2+m2+n2−2mncosA−2nlcosB−2lmcosC.
Quadratic curves The equation of a conic section in the variable trilinear point x : y : z is rx2+sy2+tz2+2uyz+2vzx+2wxy=0. It has no linear terms and no constant term. The equation of a circle of radius r having center at actual-distance coordinates (a', b', c' ) is (x−a′)2sin2A+(y−b′)2sin2B+(z−c′)2sin2C=2r2sinAsinBsinC.
Circumconics The equation in trilinear coordinates x, y, z of any circumconic of a triangle is lyz+mzx+nxy=0. If the parameters l, m, n respectively equal the side lengths a, b, c (or the sines of the angles opposite them) then the equation gives the circumcircle. Each distinct circumconic has a center unique to itself. The equation in trilinear coordinates of the circumconic with center x' : y' : z' is yz(x′−y′−z′)+zx(y′−z′−x′)+xy(z′−x′−y′)=0.
Inconics Every conic section inscribed in a triangle has an equation in trilinear coordinates: l2x2+m2y2+n2z2±2mnyz±2nlzx±2lmxy=0, with exactly one or three of the unspecified signs being negative. The equation of the incircle can be simplified to ±xcosA2±ycosB2±zcosC2=0, while the equation for, for example, the excircle adjacent to the side segment opposite vertex A can be written as ±−xcosA2±ycosB2±zcosC2=0.
… excerpt ends here. Continue reading the full article.

