public abstract class APrimitive extends ASceneObject
| Modifier | Constructor and Description |
|---|---|
|
APrimitive() |
protected |
APrimitive(APrimitive old,
Map<Object,Object> props) |
| Modifier and Type | Method and Description |
|---|---|
abstract 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.
|
void |
getPigment(mikera.vectorz.Vector3 position,
mikera.vectorz.Vector3 colourOut) |
HashMap<Object,Object> |
getProperties()
Gets the property map for this scene object
|
abstract double |
getSupport(mikera.vectorz.Vector3 normal)
Gets the support distance for a given normal direction,
i.e.
|
abstract boolean |
isFinite() |
getBoundBox, toString, withclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitincludeInBoundBoxpublic APrimitive()
protected APrimitive(APrimitive old, Map<Object,Object> props)
public abstract boolean isFinite()
isFinite in class ASceneObjectpublic void getPigment(mikera.vectorz.Vector3 position,
mikera.vectorz.Vector3 colourOut)
public HashMap<Object,Object> getProperties()
ISceneObjectgetProperties in interface ISceneObjectgetProperties in class ASceneObjectpublic abstract double getSupport(mikera.vectorz.Vector3 normal)
ISceneObjectpublic abstract boolean getIntersection(Ray ray, IntersectionInfo result)
ISceneObjectresult - Out parameter for populated intersection info if intersection was found, unchanged otherwiseCopyright © 2012. All Rights Reserved.