I am looking for the equations which describe, using trilinear coordinates:
- A line through two given points.
- A circle through three given non-collinear points.
I would also love to get a refernce for a good source on the subject. Thank you!
I am looking for the equations which describe, using trilinear coordinates:
- A line through two given points.
- A circle through three given non-collinear points.
I would also love to get a refernce for a good source on the subject. Thank you!
On
Trilinear coordinates are a special case of homogeneous coordiates. So if a point $p$ has trilinear coordinates $[x:y:z]$ then you describe a line of such points by a homogeneous equation $ax+by+cz=0$ or equivalently by a coordinate vector $g=[a:b:c]$. Incidence is checked by the dot product, so $p$ lies on $g$ iff $\langle g,p\rangle=ax+by+cz=0$. Given two points $p,q$ the line spanned by them has coordinate vector $p\times q$. See What is the interpretation of homogeneous line intersection? for further discussion.
Circles are harder. Homogeneous coordinates usually go hand in hand with projective geometry, and a generic conic is a much more natural concept there than a circle. You can't find a description of the circle without taking the shape of the basis triangle into account in some way.
In the usual homogenization of the Euclidean plane using $(x,y)\mapsto[x:y:1]$ all circles pass through the ideal circle points $[1:\pm i:0]$. A conic is defined by five points, so three points plus these circle points define a circle. Switching to trilinear coordinates is a change of basis, so the circle points still exist as a concept, but their coordinates are different and more complicated.
A change of basis is equivalent to a projective transformation, which is uniquely defined by four points and their images, as detailed here. So by mapping e.g. the three corners and the incircle center $[1:1:1]$ you could find a matrix for this change of coordinates. You could apply it to the ideal circle points, then describe the circle as a conic through these.
Wolfram and Wikipedia are good references for trilinear coordinates introduction : http://mathworld.wolfram.com/TrilinearCoordinates.html and https://en.wikipedia.org/wiki/Trilinear_coordinates
Long time ago when I began my euclidean geometry comp projects, I had to learn about them because "Triangle geometry" (in the 2D plane) and geometers use a lot this kind of coordinates with their pros and cons. For example, the ETC (Encyclopedia of Triangle Centers - Kimberling) or Wolfram geometry pages or Forum Geometricorum papers. I coded conversions functions (to/from cartesian, polar,..) and use the matrix representation of conics for conics intersection.
Here is one except of my python code to answer your questions :
For circle I have two answers one using segment bissectors (you can intersect two segment bissectors to get circle center) and one using the equation of a circle in trilinear coordinates. I will give it here the 2nd one (otherwise I should put too, my code for intersecting lines, middle points,..) :
For a short explaination of last function : solving a linear system of three equations (each equation is got by replacing x:y:z by xi:yi:yi in the generic circle equation).