I need to calculate cross ratio of 5 coplanar points. I have formula for one of the invariants. The problem is I don't know how can this be implemented in programming (in python). I've used dot product of matrices bu that is not giving a scalar value.
PS: the screenshot is from this paper
