mark¶
- class janim.components.mark.Cmpt_Mark(*args, **kwargs)¶
基类:
Component,Generic- names: list[str] = []¶
- copy() Self¶
- classmethod align_for_interpolate(cmpt1: Cmpt_Mark, cmpt2: Cmpt_Mark) AlignedData[Self]¶
- interpolate(cmpt1: ~typing.Self, cmpt2: ~typing.Self, alpha: float, *, path_func: PathFunc = <function straight_path>) None¶
- get_points() ndarray¶
直接得到记录的所有坐标点数据
- get(index: int | str = 0) ndarray¶
得到指定索引(默认为 0)记录的坐标点
- set_points(points: VectArray) Self¶
直接设置记录的所有坐标点数据,不会对
points产生影响
- set(point: Vect, index: int | str = 0, *, root_only: bool = False) Self¶
设置指定索引(默认为 0)记录的坐标点
更改会同步到
points上
- format_index(index: int | str) int¶
- apply_points_fn(func: PointsFn, about_point: Vect | None = None) Self¶
将所有点作为单独的一个参数传入
func,并将func返回的结果作为新的点坐标数据用于同步与
points的变换,已经在MarkedItem里绑定了同步,不需要手动设置和调用