public static final class Bounds3D.Builder extends Object
Bounds3D
instances.Modifier and Type | Method and Description |
---|---|
Bounds3D.Builder |
add(Bounds3D bounds)
Add the min and max points from the given bounds to this instance.
|
Bounds3D.Builder |
add(Vector3D pt)
Add a point to this instance.
|
Bounds3D.Builder |
addAll(Iterable<? extends Vector3D> pts)
Add a collection of points to this instance.
|
Bounds3D |
build()
Create a new
Bounds3D instance from the values in this builder. |
boolean |
hasBounds()
Return true if this builder contains valid min and max coordinate values.
|
public Bounds3D.Builder add(Vector3D pt)
pt
- point to addpublic Bounds3D.Builder addAll(Iterable<? extends Vector3D> pts)
pts
- points to addpublic Bounds3D.Builder add(Bounds3D bounds)
bounds
- bounds containing the min and max points to addpublic boolean hasBounds()
public Bounds3D build()
Bounds3D
instance from the values in this builder.
The builder can continue to be used to create other instances.IllegalStateException
- if no points were given to the builder or any of the computed
min and max coordinate values are NaN or infinitehasBounds()
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.