public class BoundingBox extends Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
max |
protected int[] |
min |
Constructor and Description |
---|
BoundingBox(int dimensions) |
Modifier and Type | Method and Description |
---|---|
int |
getDimensions() |
void |
getExtents(int[] destMin,
int[] destMax)
the minimum and maximum extents of the box
|
void |
update(int[] coordinates)
update the minimum and maximum extents with the given coordinates.
|
public int getDimensions()
public void getExtents(int[] destMin, int[] destMax)
destMin
- - on input, an array of at least size D, the dimension of
the space. On output, the minimum extents of the bounding box.destMax
- - on output, the maximum extents of the bounding box.public void update(int[] coordinates)
coordinates
- Copyright © 2015–2021 Fiji. All rights reserved.