Implicit equation f(x,y)=0 of a triangle with arbitrary vertices Posted on 2021/12/07 by Carl Robitaille This is the implicit equation f(x,y)=0 of a triangle with arbitrary verts, that actually computes the exact Euclidean distance from (x,y) to the triangle.It uses min{} and max{}, which are defined in terms of the absolute value |x|. Code: https://t.co/Tq0QpIjFiI pic.twitter.com/Q8ZJQS0fwX— inigo quilez (@iquilezles) December 2, 2021