MEDYAN.BallIdx

Union{}

BallIdx <: Place

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 0
  • BallIdx(idx::Int64): Creates a ball index pointing to the ball at position idx in the context’s balls vector

Fields

  • idx::Int64: Index of the ball in the context’s balls vector