SwiftextensionGeometry

extension OS_geom_bvh_2f: Geometry.BVH2

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

extends{}

inherits{}

Members 19

  1. funcclosestPoint(to: SIMD2<Float>, closestPointFunction: (UInt32, SIMD2<Float>) -> SIMD2<Float>) -> (point: SIMD2<Float>, distanceSquared: Float, primitive: UInt32)
  2. funcprimitives(forNode: UInt32) -> ArraySlice<UInt32>
  3. funcprimitives(forNode: geom_bvh_node_2f) -> ArraySlice<UInt32>
  4. funcraycast(ray: geom_ray_2f, intersectFunction: (UInt32, geom_ray_2f) -> Float?) -> (t: Float, primitive: UInt32)?
  5. funcreinit(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f], options: OS_geom_bvh_create_opt_2f) -> ()
  6. funcreinit(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f]) -> ()
  7. funcstatistics() -> (maxLevel: Int, sumOfLevels: Int)
  8. initinit(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f], heuristicFunction: @convention(c) (UInt32, geom_bbox_2f, UInt32, geom_bbox_2f) -> Float, minimumPrimitivesInInteriorNode: Int, bucketCount: Int) -> OS_geom_bvh_2f
  9. initinit(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f], options: OS_geom_bvh_create_opt_2f) -> OS_geom_bvh_2f
  10. initinit(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f], strategy: geom_bvh_create_strategy, minimumPrimitivesInInteriorNode: Int) -> OS_geom_bvh_2f
  11. initinit(centroids: [SIMD2<Float>], bboxs: [geom_bbox_2f]) -> OS_geom_bvh_2f
  12. typealiastypealias BBox2Type = __C.geom_bbox_2f
  13. typealiastypealias CreateOptions = __C.OS_geom_bvh_create_opt_2f
  14. typealiastypealias HeuristicFunction = @convention(c) (Swift.UInt32, __C.geom_bbox_2f, Swift.UInt32, __C.geom_bbox_2f) -> Swift.Float
  15. typealiastypealias Node = __C.geom_bvh_node_2f
  16. typealiastypealias Ray2Type = __C.geom_ray_2f
  17. typealiastypealias Scalar = Swift.Float
  18. varvar nodes: ArraySlice<geom_bvh_node_2f> { get }
  19. varvar primitivePartition: ArraySlice<UInt32> { get }
extension __C.OS_geom_bvh_2f: Geometry.BVH2 {
    typealias Scalar = Swift.Float
    typealias Ray2Type = __C.geom_ray_2f
    typealias BBox2Type = __C.geom_bbox_2f
    typealias HeuristicFunction = @convention(c) (Swift.UInt32, __C.geom_bbox_2f, Swift.UInt32, __C.geom_bbox_2f) -> Swift.Float
    typealias Node = __C.geom_bvh_node_2f
    typealias CreateOptions = __C.OS_geom_bvh_create_opt_2f
}