BoundableType

public protocol BoundableType

Protocol for general geometric types that can be fitted into a finite, non-empty axis-aligned bounding box.

  • The vector type associated with this BoundableType.

    Declaration

    Swift

    associatedtype Vector : VectorType
  • Gets a bounding box with the minimal volume to fully enclose all points of this geometry.

    Declaration

    Swift

    var bounds: AABB<Vector> { get }