public class Rectangle extends Object
| Modifier and Type | Field and Description |
|---|---|
IntVar[] |
length |
IntVar[] |
origin
It specifies the the rectangle.
|
| Constructor and Description |
|---|
Rectangle(IntVar[] list)
It constructs a rectangle.
|
Rectangle(IntVar o1,
IntVar o2,
IntVar l1,
IntVar l2)
It constructs a rectangle.
|
Rectangle(List<? extends IntVar> list)
It constructs a rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
static Stream<Var> |
getStream(Rectangle[] scope) |
String |
toString() |
public final IntVar[] origin
public final IntVar[] length
public Rectangle(IntVar o1, IntVar o2, IntVar l1, IntVar l2)
o1 - origin in dimension 0o2 - origin in dimension 1l1 - length in dimension 0l2 - length in dimension 1public Rectangle(IntVar[] list)
list - it specifies for each dimension (one after the other) its origin and length.Copyright © 2022. All rights reserved.