Here you can find the source of plus(Point point1, Point point2)
public static Point plus(Point point1, Point point2)
//package com.java2s; //License from project: Apache License import java.awt.Point; public class Main { public static Point plus(Point point1, Point point2) { return new Point(point1.x + point2.x, point1.y + point2.y); }/*from w w w. j a v a2s . co m*/ }