translate Point - Android Graphics

Android examples for Graphics:Path Point

Description

translate Point

Demo Code


import android.graphics.PointF;

public class Main{
    public static PointValue translate(PointF p, float x, float y) {
        return new PointValue(p.x + x, p.y + y);
    }/*w  ww.  j a  v a2s  . c  o m*/
}

Related Tutorials