EmptyStack
Implements IObjextStack for an empty collection.
Constructors
EmptyStack
#public EmptyStack(Color colour)
Create a new, empty stack.
Parameters:
| colour (Color) | Default colour. |
Methods
AllObjectsAbove
#Find all objects coincident with the (u,v) location at or above a given layer index.
AllObjectsBelow
#Find all objects coincident with the (u,v) location at or below a given layer index.
ContinueAndSample
#Continue an existing ray.
Parameters:
| ray (Ray) | Ray to continue. |
Returns: Colour at continued ray location.
Implements: ContinueAndSample
FirstObjectAbove
#Find the index of the first object at the (u,v) location at or above the given layer index.
Parameters:
| x (double) | U coordinate. |
| y (double) | V coordinate. |
| startAt (int) | Start layer. Objects on this layer are taken into account. |
Returns: The index of the first object coincident with (u,v) at or above the start layer. Or, if no object was found, -1.
Implements: FirstObjectAbove
FirstObjectBelow
#Find the index of the first object at the (u,v) location at or below the given layer index.
Parameters:
| x (double) | U coordinate. |
| y (double) | V coordinate. |
| startAt (int) | Start layer. Objects on this layer are taken into account. |
Returns: The index of the first object coincident with (u,v) at or below the start layer. Or, if no object was found, -1.
Implements: FirstObjectBelow