equation/intersection vertex implementation. Cannot be compiled :)