Skip to content

bloqade.visual.animation.runtime.atoms.AtomTrajectory

← Module overview

classAtomTrajectorysource

bloqade.visual.animation.runtime.atoms.AtomTrajectory

Signature
class AtomTrajectory(id: int, x: PPoly, y: PPoly, events: List[Tuple[float, str]])

Parameters

NameTypeDescription
idint
xPPoly
yPPoly
eventsList[Tuple[float, str]]

Attributes

NameTypeDescription
idint
xPPoly
yPPoly
eventsList[Tuple[float, str]]

methodpositionsource

bloqade.visual.animation.runtime.atoms.AtomTrajectory.position

def position(t: float) -> Tuple[np.ndarray, np.ndarray]

Parameters

NameTypeDescription
tfloat

Returns

Tuple[np.ndarray, np.ndarray]

source

propertyhas_lostsource

bloqade.visual.animation.runtime.atoms.AtomTrajectory.has_lost

has_lost: bool
source

methodis_lostsource

bloqade.visual.animation.runtime.atoms.AtomTrajectory.is_lost

def is_lost(time: float) -> bool

Parameters

NameTypeDescription
timefloat

Returns

bool

source

methodto_jsonsource

bloqade.visual.animation.runtime.atoms.AtomTrajectory.to_json

def to_json()
source

methodfrom_jsonsource

bloqade.visual.animation.runtime.atoms.AtomTrajectory.from_json

def from_json(json_dict)

Parameters

NameTypeDescription
json_dict—
source