public class Box extends Object implements Shape
Constructor and Description |
---|
Box(double[] first,
double[] second)
Creates a new Box from the given
first to the second point represented as the double[]. |
Box(Point first,
Point second)
Creates a new Box spanning from the given first to the second
Point . |
public Box(Point first, Point second)
Point
.first
- must not be null.second
- must not be null.public Box(double[] first, double[] second)
first
to the second
point represented as the double[].first
- must not be null and contain exactly 2 doubles.second
- must not be null and contain exactly 2 doubles.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.