IObjectStack

References
public interface IObjectStack
Interface for exposing sampling functionality of a Raycaster.

Methods

ContinueAndSample

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

FirstObjectAbove

#
Find the index of the first object at the (u,v) location at or above the given layer index.
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.

FirstObjectBelow

#
Find the index of the first object at the (u,v) location at or below the given layer index.
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.

Sample

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