📝 测试文档部署

This commit is contained in:
2024-08-28 12:02:30 +08:00
parent f5d91cafd5
commit e0a3ab605d
39 changed files with 2811 additions and 819 deletions

View File

@@ -1,24 +1,19 @@
---
title: mbcp.mp\nmath.segment
order: 1
icon: laptop-code
category: API
title: mbcp.mp_math.segment
---
### ***class*** `Segment3`
- #### *def* `__init__(self, p1: 'Point3', p2: 'Point3')`
###   ***def*** `__init__(self, p1: 'Point3', p2: 'Point3') -> None`
 三维空间中的线段。
三维空间中的线段。
:param p1:
:param p2:
- #
<details>
<summary>源码</summary>
<summary>源码</summary>
```python
def __init__(self, p1: 'Point3', p2: 'Point3'):
@@ -38,3 +33,27 @@ def __init__(self, p1: 'Point3', p2: 'Point3'):
```
</details>
- #### *def* `__repr__(self)`
- #
<details>
<summary>源码</summary>
```python
def __repr__(self):
return f'Segment3({self.p1}, {self.p2})'
```
</details>
- #### *def* `__str__(self)`
- #
<details>
<summary>源码</summary>
```python
def __str__(self):
return f'Segment3({self.p1} -> {self.p2})'
```
</details>