@@ -0,0 +1,431 @@
+package org.psjava.geometry.calc;%0A%0Aimport org.psjava.geometry.data.Point2D;%0Aimport org.psjava.math.linearalgebra.Vector2D;%0Aimport org.psjava.math.ns.AddableNumberSystem;%0A%0Apublic class DirectionVectorFrom2DPoints %7B%0A%0A%09public static %3CT%3E Vector2D%3CT%3E get(AddableNumberSystem%3CT%3E ns, Point2D%3CT%3E from, Point2D%3CT%3E to) %7B%0A%09%09T dx = ns.subtract(to.x(), from.x());%0A%09%09T dy = ns.subtract(to.y(), from.y());%0A%09%09return Vector2D.create(dx, dy);%0A%09%7D%0A%0A%7D%0A

add direction vector calc