mirror of
https://github.com/snowykami/mbcp.git
synced 2026-01-18 17:52:14 +00:00
📝 测试文档部署
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user