JavaFX Point difference - Java JavaFX

Java examples for JavaFX:Shape

Description

JavaFX Point difference

Demo Code


//package com.java2s;

import javafx.geometry.Point2D;

public class Main {
    public static Point2D diff(Point2D a, Point2D b) {
        return new Point2D(a.getX() - b.getX(), a.getY() - b.getY());
    }//  w  w  w . j a  v a2s.  c o  m
}

Related Tutorials