Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
// SCNGeometryExtensions.swift - Copyright 2020 SwifterSwift
#if canImport(SceneKit)
import SceneKit
// MARK: - Properties
public extension SCNGeometry {
/// SwifterSwift: Returns the size of the geometry's bounding box.
var boundingSize: SCNVector3 {
return (boundingBox.max - boundingBox.min).absolute
}
}
#endif