Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oliver-dew/0999b0334be0a4e4c9bf9e5aa4c67e65 to your computer and use it in GitHub Desktop.
Save oliver-dew/0999b0334be0a4e4c9bf9e5aa4c67e65 to your computer and use it in GitHub Desktop.
private func planeBoundary(extent: float3) -> (min: SCNVector3, max: SCNVector3) {
let radius = extent * 0.5
return (min: SCNVector3(-radius), max: SCNVector3(radius))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment