Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 413 Bytes
//
// SCNGeometryExtensions.swift
// SwifterSwift
//
// Created by Max Härtwig on 06.04.19.
// Copyright © 2019 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
You can’t perform that action at this time.