MEDYAN.is_minimized

Tuple{MEDYAN.Context, MEDYAN.BallIdx}

is_minimized(c::Context, ball::Union{BallIdx, Tag{BallIdx}})::Bool

Return true if the ball has been minimized (i.e. its position has been updated by minimize_energy! since it was last created or modified).

Balls are marked as not minimized when created with make_ball! or when their position or radius is changed via update_ball!. All balls are marked as minimized at the end of minimize_energy!.

See also: make_ball!, update_ball!, minimize_energy!

Tuple{MEDYAN.Context, MEDYAN.FilaMonoIdx}

is_minimized(c::Context, p::Union{FilaMonoIdx, FilaTipIdx, Tag})::Bool

Return true iff the monomer or tip has been minimized. Throw an error if p doesn’t exist.