Here you can find the source of checkPoint(Point p)
public static boolean checkPoint(Point p)
//package com.java2s; //License from project: Open Source License import java.awt.Point; import java.awt.Rectangle; public class Main { public static Rectangle clip = new Rectangle(0, 0, 1, 1); public static boolean checkPoint(Point p) { return clip.contains(p); }/* w w w .jav a 2s . co m*/ }