camera¶
- class janim.camera.camera.Cmpt_CameraPoints(*args, **kwargs)¶
基类:
Cmpt_Points,Generic- reset() Self¶
将摄像机几何属性设置为初始状态
- copy() Self¶
- become(other: Cmpt_CameraPoints) Self¶
- not_changed(other: Cmpt_CameraPoints) Self¶
- interpolate(cmpt1: ~typing.Self, cmpt2: ~typing.Self, alpha: float, *, path_func: PathFunc = <function straight_path>) None¶
- property scaled_factor: float¶
- property size: ndarray¶
- property fov: float¶
- scale(scale_factor: float | Iterable, **kwargs) Self¶
将摄像机缩放指定倍数
- rotate(angle: float, *, axis: Vect = array([0., 0., 1.]), absolute: bool = True, **kwargs) Self¶
将摄像机绕
axis轴进行旋转默认
absolute=True表示绕全局坐标系旋转absolute=False表示绕相机自身坐标系旋转,并且此时about_point参数无效
- property info: CameraInfo¶
摄像机的几何属性
- class janim.camera.camera.Camera(*points: Vect, **kwargs)¶
基类:
Points- cmpt_init_datas = {'depth': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.item.Item'>), 'points': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.points.Points'>)}¶
- points¶