public final class Union extends ACompositeObject
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIntersection(Ray ray,
IntersectionInfo result)
Gets the intersection of the scene object with a ray
Returns true if an intersection was found, in which case:
1.
|
double |
getSupport(mikera.vectorz.Vector3 normal)
Gets the support distance for a given normal direction,
i.e.
|
void |
includeInBoundBox(BoundBox b) |
boolean |
isFinite() |
static Union |
of(Collection<ASceneObject> objects) |
getBoundBox, getProperties, toString, withpublic static Union of(Collection<ASceneObject> objects)
public boolean isFinite()
isFinite in class ASceneObjectpublic double getSupport(mikera.vectorz.Vector3 normal)
ISceneObjectpublic boolean getIntersection(Ray ray, IntersectionInfo result)
ISceneObjectresult - Out parameter for populated intersection info if intersection was found, unchanged otherwisepublic void includeInBoundBox(BoundBox b)
Copyright © 2012. All Rights Reserved.