Emitter
public protocol Emitter : AnyObject
An object that can calculate and draw ray intersections.
-
Visual style for the emitter’s rays
Declaration
Swift
var style: RayTraceStyle { get set }
-
Process the ray casting operations for this emitter.
This method calculates the paths of the emitter’s rays, but does not draw them. Any previous rays will be overwritten.
Declaration
Swift
func run(objects: [RayTracable])
Parameters
objects
The objects with which the rays will interact
-
Draw the paths taken by the emitter’s rays.
This method does not perform any ray tracing.
Declaration
Swift
func draw()
-
draw(objects:
Extension method) Process the ray casting operations for this emitter and draw th paths.
Declaration
Swift
public func draw(objects: [RayTracable])
Parameters
objects
The objects with which the rays will interact