def has_other_close

bend-prot@0.1.0.0 · sasa.bend:29

import bend-prot@0.1.0.0/sasa.bend as Sasa
import Base
import bend-prot@0.1.0.0/geom.bend as G
import bend-prot@0.1.0.0/protein.bend as P

29# Any atom but `skip` within rc2 of the sample point occludes it.
30def has_other_close(
31  xs: List<&2, P.Atom>, +pt: G.Vec3, +rc2: F32, +skip: U32
32) -> Bool:
33  match xs:
34    case Nil{}:
35      False{}
36    case h <> t:
37      Bool.or(has_other_close(t, pt, rc2, skip), occ_head(h, pt, rc2, skip))

Uses (8)

Used by (1)