public class Box3D extends Object implements Interceptable
Constructor and Description |
---|
Box3D(double[] center,
double width,
double length,
double height) |
Box3D(double minx,
double miny,
double minz,
double maxx,
double maxy,
double maxz) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Box3D boundingBox) |
boolean |
contains(double[] point) |
double[] |
getCenter() |
Box3D |
getIntersectingBox(Box3D other) |
List<Intersection> |
getIntersections(double[] origin,
double[] direction) |
double |
getVolume() |
boolean |
intersects(Box3D other) |
public Box3D(double[] center, double width, double length, double height)
public Box3D(double minx, double miny, double minz, double maxx, double maxy, double maxz)
public List<Intersection> getIntersections(double[] origin, double[] direction)
getIntersections
in interface Interceptable
public boolean contains(double[] point)
contains
in interface Interceptable
public boolean intersects(Box3D other)
public boolean contains(Box3D boundingBox)
public double getVolume()
public double[] getCenter()
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.