Menelaus's theorem

From JSXGraph Wiki

The underlying JavaScript code