@@ -0,0 +1,691 @@
+package org.psjava.example.algo;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.psjava.ds.geometry.Point2D;%0Aimport org.psjava.ds.geometry.Segment2D;%0Aimport org.psjava.ds.numbersystrem.IntegerNumberSystem;%0Aimport org.psjava.formula.geometry.PointOnSegment;%0A%0Apublic class DeterminingPointOnSegmentExample %7B%0A%0A/**%0A * @implementation %7B@link org.psjava.formula.geometry.PointOnSegment%7D%0A */%0A%09@Test%0A%09public void example() %7B%0A%09%09Point2D%3CInteger%3E point = Point2D.create(5, 0);%0A%09%09Segment2D%3CInteger%3E segment = Segment2D.create(Point2D.create(0, 0), Point2D.create(10, 0));%0A%09%09boolean on = PointOnSegment.isOn(point, segment, IntegerNumberSystem.getInstance());%0A%09%09Assert.assertTrue(on);%0A%09%7D%0A%0A%0A%7D%0A

add am example - DeterminingPointOnSegmentExample.java