QL-7: QL-Conversion DT -> CT-coordinates
Let L1.L2.L3.L4 be the Reference Quadrilateral with defining lines L1, L2, L3, L4.
Let La.Lb.Lc be the Diagonal Triangle of the Quadrilateral with bounding lines La, Lb, Lc.
The construction of the QL-Diagonal Triangle can be found at QL-Tr1.
Let L1.L2.L3 be the random Reference Component Triangle en let L4 be the 4th line.
L1.L2.L3 is the Cevian Triangle of L4 wrt the QL-Diagonal Triangle La.Lb.Lc, where L4 is the perspectrix.
Conversion of a line
Since we deal with lines in a Quadrilateral we first will convert the equation of a line.
Let R be some line to be converted from DT- to CT-coordinates.
Let Rc (xc : yc : zc) be the presentation of R in barycentric coordinates wrt the Component Triangle.
Let Rd (xd : yd : zd) be the presentation of R in barycentric coordinates wrt the Diagonal Triangle.
Now Rc = xc.cfc1.L1 + yc.cfc2.L2 + zc.cfc3.L3 wrt the Reference Component Triangle
and Rd = xd.cfd1.La + yd.cfd2.Lb + zd.cfd3.Lb wrt the Diagonal Triangle,
where:
- (xc : yc : zc) are the barycentric coordinates of R wrt the Component Triangle,
- (xd : yd : zd) are the barycentric coordinates of R wrt the Diagonal Triangle,
- cfc1, cfc2, cfc3 are the Compliance Factors of the Component Triangle,
- cfd1, cfd2, cfd3 are the Compliance Factors of the Diagonal Triangle.
Explanation of Compliance Factors can be found at (See Ref-26b page 40).
Since the Diagonal Triangle is the Reference Triangle, the Compliance Factors of the Diagonal Triangle are all equal 1.
The Compliance Factors of the Component Triangle are:
- cfc1 = Det [LI, L2, L3] / Det [L1, L2, L3],
- cfc2 = Det [L1, LI, L3] / Det [L1, L2, L3],
- cfc3 = Det [L1, L2, LI] / Det [L1, L2, L3],
where LI = the line at infinity (1 : 1 : 1) and “Det” is the abbreviation for “Determinant”.
Calculation gives 2 presentations of the coordinates of R wrt the Component Triangle:
Rc = ( -l ( l m xc + l n xc - l m yc - m n yc - l n zc - m n zc) :
-m (-l m xc - l n xc + l m yc + m n yc - l n zc - m n zc) :
n (l m xc + l n xc + l m yc + m n yc - l n zc - m n zc))
Rd = (xd : yd : zd),
Since Rc and Rd present the same point we can now calculate the coordinates of R wrt the Diagonal Triangle:
- (xc : yc : zc) =
((l + m) (l + n) (n yd + m zd) :
(l + m) (m + n) (n xd + l zd) :
(l + n) (m + n) (m xd + l yd))
However we have to bear in mind that the variables in these coordinates are expressions in (a,b,c) and (l,m,n), which are variables wrt the Component Triangle. So also a conversion of these variables from CT to DT should be done.
Therefore the DT > CT-conversion of line R (x : y : z) consists of 3 consecutive steps:
1. Transform Line (x : y : z) -->
((l + m) (l + n) (n y + m z) :
(l + m) (m + n) (n x + l z) :
(l + n) (m + n) (m x + l y))
2. Replace a2 -> ( l m + l n - m n)2 (b2 m2 + a2 m n - b2 m n - c2 m n + c2 n2)
b2 -> ( l m - l n + m n)2 ( a2 l2 - a2 l n + b2 l n - c2 l n + c2 n2 )
c2 -> (-l m + l n + m n)2 (a2 l2 - a2 l m - b2 l m + c2 l m + b2 m2)
3. Replace l -> ( l m - l n - m n) (l m - l n + m n)
m -> ( l m - l n - m n) (l m + l n - m n)
n -> (-l m - l n + m n) (l m - l n + m n)
Conversion of a point
Converting the coordinates of a point in the Quadrilateral-environment is converting the intersection of 2 lines.
This actually only changes the Transform of (x : y : z) and leaves the replacements of variables unchanged:
1. Transform Point (x : y : z) -->
( -l (m + n) ( l p - m q - n r) :
-m (l + n) (-l p + m q - n r) :
n (l + m) ( l p + m q - n r))
2. Replace a2 -> ( l m + l n - m n)2 (b2 m2 + a2 m n - b2 m n - c2 m n + c2 n2)
b2 -> ( l m - l n + m n)2 (a2 l2 - a2 l n + b2 l n - c2 l n + c2 n2 )
c2 -> (-l m + l n + m n)2 (a2 l2 - a2 l m - b2 l m + c2 l m + b2 m2)
3. Replace l -> ( l m - l n - m n) (l m - l n + m n)
m -> ( l m - l n - m n) (l m + l n - m n)
n -> (-l m - l n + m n) (l m - l n + m n)