MEDYAN.Anchor
Union{}
A position and directions fixed in the simulation frame. Useful for creating links to a point that doesn’t move with any dynamic elements.
Constructors
Anchor(): Creates a null anchor with NaN position, NaN directions, and state 0Anchor(pos::SVector{3, Float64}): Creates an anchor at the given position with NaN directions and state 0Anchor(pos::SVector{3, Float64}, dirs::SVector{2, SVector{3, Float64}}): Creates an anchor at the given position with specified directions and state 0Anchor(pos::SVector{3, Float64}, dirs::SVector{2, SVector{3, Float64}}, state::Int64): Full constructor with position, directions, and state
Fields
pos::SVector{3, Float64}: 3D position coordinatesdirs::SVector{2, SVector{3, Float64}}: Two direction vectorsstate::Int64: State identifier for chemical reactions