bloqade.visual.animation.runtime.atoms.AtomTrajectory
← Module overview
class
method
sourceproperty
sourcemethod
method
sourcemethod
classAtomTrajectory¶source
bloqade.visual.animation.runtime.atoms.AtomTrajectory
Signature
class AtomTrajectory(id: int, x: PPoly, y: PPoly, events: List[Tuple[float, str]])Parameters
| Name | Type | Description |
|---|---|---|
id | int | |
x | PPoly | |
y | PPoly | |
events | List[Tuple[float, str]] |
Attributes
| Name | Type | Description |
|---|---|---|
id | int | |
x | PPoly | |
y | PPoly | |
events | List[Tuple[float, str]] |
methodposition¶source
bloqade.visual.animation.runtime.atoms.AtomTrajectory.position
def position(t: float) -> Tuple[np.ndarray, np.ndarray]Parameters
| Name | Type | Description |
|---|---|---|
t | float |
Returns
Tuple[np.ndarray, np.ndarray]
propertyhas_lost¶source
bloqade.visual.animation.runtime.atoms.AtomTrajectory.has_lost
has_lost: boolmethodis_lost¶source
bloqade.visual.animation.runtime.atoms.AtomTrajectory.is_lost
methodto_json¶source
bloqade.visual.animation.runtime.atoms.AtomTrajectory.to_json
def to_json()methodfrom_json¶source
bloqade.visual.animation.runtime.atoms.AtomTrajectory.from_json