EmptyStack

public sealed class EmptyStack : IObjectStack
Implements IObjextStack for an empty collection.

Constructors

EmptyStack

#
Create a new, empty stack.
public EmptyStack(
Color
colour
Default colour.
)

Methods

AllObjectsAbove

#
Find all objects coincident with the (u,v) location at or above a given layer index.
public int[] AllObjectsAbove(
u,
U coordinate.
v,
V coordinate.
startAt
Start layer. Objects on this layer are taken into account.
)
Array of all object indices coincident with (u,v) at or above the start layer.

AllObjectsBelow

#
Find all objects coincident with the (u,v) location at or below a given layer index.
public int[] AllObjectsBelow(
u,
U coordinate.
v,
V coordinate.
startAt
Start layer. Objects on this layer are taken into account.
)
Array of all object indices coincident with (u,v) at or below the start layer.

ContinueAndSample

#
Continue an existing ray.
public Color ContinueAndSample(
ray
Ray to continue.
)
Colour at continued ray location.
ContinueAndSample

FirstObjectAbove

#
Find the index of the first object at the (u,v) location at or above the given layer index.
public int FirstObjectAbove(
x,
U coordinate.
y,
V coordinate.
startAt
Start layer. Objects on this layer are taken into account.
)
The index of the first object coincident with (u,v) at or above the start layer. Or, if no object was found, -1.
FirstObjectAbove

FirstObjectBelow

#
Find the index of the first object at the (u,v) location at or below the given layer index.
public int FirstObjectBelow(
x,
U coordinate.
y,
V coordinate.
startAt
Start layer. Objects on this layer are taken into account.
)
The index of the first object coincident with (u,v) at or below the start layer. Or, if no object was found, -1.
FirstObjectBelow

Sample

#
Shoot a ray into the object stack and evaluate the colour.
public Color Sample(
ray
Ray to shoot.
)
Colour at ray location.
Sample