Java tutorial
//package com.java2s; import android.graphics.PointF; public class Main { private static PointF catmull_rom_spline_tangent(PointF p0, PointF p1) { return new PointF((p0.x - p1.x) / 2, (p0.y - p1.y) / 2); } }