| java.lang.Object org.netbeans.modules.visual.util.GeomUtil
GeomUtil | final public class GeomUtil (Code) | | author: David Kaspar |
Field Summary | |
final public static Logger | LOG | final public static double | M_PI_2 |
M_PI_2 | final public static double M_PI_2(Code) | | |
center | public static Point center(Rectangle rectangle)(Code) | | Returns a center point of a rectangle.
Parameters: rectangle - the rectangle the center point |
centerX | public static int centerX(Rectangle rectangle)(Code) | | Returns a x-axis center of rectangle.
Parameters: rectangle - the rectangle the x-axis center |
centerY | public static int centerY(Rectangle rectangle)(Code) | | Returns a y-axis center of rectangle.
Parameters: rectangle - the rectangle the y-axis center |
distanceSq | public static double distanceSq(Point p1, Point p2)(Code) | | Returns a square distance of two points.
Parameters: p1 - the first point Parameters: p2 - the second point the square distance |
equals | public static boolean equals(Object o1, Object o2)(Code) | | Returns whether two objects are equal
Parameters: o1 - the first object; cound be null Parameters: o2 - the second object; cound be null true, if they are equal |
roundRectangle | public static Rectangle roundRectangle(Rectangle2D rectangle)(Code) | | Rounds Rectangle2D to Rectangle.
Parameters: rectangle - the rectangle2D the rectangle |
|
|