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
BoundingBoxDeclaration
Swift
public init(inset: Double = 100)Parameters
insetMargin from the edge
-
Draw the
BoundingBoxThis method calls
.update()before drawingDeclaration
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)
View on GitHub
BoundingBox Class Reference