BoundingBox

public class BoundingBox : Rectangle

A specialized Rectangle which is inset from the canvas size

  • Amount to inset the bounding box from the canvas

    Declaration

    Swift

    public var inset: Double
  • Instantiate a new BoundingBox

    Declaration

    Swift

    public init(inset: Double = 100)

    Parameters

    inset

    Margin from the edge

  • Draw the BoundingBox

    This method calls .update() before drawing

    Declaration

    Swift

    public func draw()
  • Update the size of the rectangle based on the current context

    Declaration

    Swift

    public func update()
  • Terminate a ray.

    Declaration

    Swift

    public override func modifyRay(_ ray: Ray)