manimgeo.components.line.line module¶
- class manimgeo.components.line.line.Line(**data)[源代码]¶
基类:
BaseGeometry线类
建议对 Line 的子类进行实例化,而不是直接实例化 Line
- attrs: List[str]¶
- start: np.ndarray¶
- end: np.ndarray¶
- length: Number¶
- unit_direction: np.ndarray¶
- args: LineConstructArgs¶
- adapter: LineAdapter¶
- line_type: Literal['LineSegment', 'Ray', 'InfinityLine']¶
- property construct_type: LineConstructType¶
- classmethod TranslationLV(line, vec, name='')[源代码]¶
平移构造线
line: 原线
vec: 平移向量
- 返回类型:
TypeVar(_LineT, bound= Line)
- classmethod PP(start, end, name='')[源代码]¶
起始点构造线
start: 起点
end: 终点
- 返回类型:
TypeVar(_LineT, bound= Line)
- classmethod PV(start, vector, name='')[源代码]¶
起点方向构造线
start: 起点
vector: 方向向量
- 返回类型:
TypeVar(_LineT, bound= Line)
- classmethod VerticalPL(point, line, name='')[源代码]¶
点与线构造垂直线
point: 垂线经过点
line: 原线
- 返回类型:
TypeVar(_LineT, bound= Line)
- classmethod ParallelPL(point, line, distance=1, name='')[源代码]¶
点与线构造平行线
point: 平行线经过点
line: 原线
distance: 平行线终点与起点的距离,默认为 1
- 返回类型:
TypeVar(_LineT, bound= Line)
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class manimgeo.components.line.line.LineSegment(**data)[源代码]¶
基类:
Line- line_type: Literal['LineSegment']¶
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class manimgeo.components.line.line.Ray(**data)[源代码]¶
基类:
Line- line_type: Literal['Ray']¶
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class manimgeo.components.line.line.InfinityLine(**data)[源代码]¶
基类:
Line- line_type: Literal['InfinityLine']¶
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].