public final class BoundingShape extends Object
| Modifier and Type | Method and Description |
|---|---|
static BoundingShape |
box(double width,
double height)
Constructs new rectangular bounding shape with given width and height.
|
static BoundingShape |
chain(javafx.geometry.Point2D... points)
Constructs new closed chain shaped bounding shape.
|
static BoundingShape |
circle(double radius)
Constructs new circular bounding shape with given radius.
|
boolean |
isCircle() |
boolean |
isRectangle() |
public boolean isCircle()
public boolean isRectangle()
public static BoundingShape circle(double radius)
radius - circle radiuspublic static BoundingShape box(double width, double height)
width - box widthheight - box heightpublic static BoundingShape chain(javafx.geometry.Point2D... points)
points - points to use in a chainIllegalArgumentException - if number of points is less than 2Copyright © 2017. All rights reserved.