MEDYAN.BallIdx
Union{}
An index referring to a ball (spherical particle) in the simulation. Balls are stored in the balls vector of the Context and represent spherical objects with position, radius, and stiffness that can participate in mechanical interactions and chemical reactions.
Constructors
BallIdx(): Creates a null ball index with idx 0BallIdx(idx::Int64): Creates a ball index pointing to the ball at positionidxin the context’s balls vector
Fields
idx::Int64: Index of the ball in the context’sballsvector
Related Functions
See make_ball!, remove_ball!, and update_ball! for creating, removing, and modifying balls.