Merge remote-tracking branch 'origin/main'

# Conflicts:
#	docs/.vitepress/config/index.ts
#	docs/api/mp_math/equation.md
#	docs/api/mp_math/line.md
#	docs/api/mp_math/plane.md
#	docs/api/mp_math/point.md
#	docs/api/mp_math/utils.md
#	docs/api/mp_math/vector.md
#	docs/api/presets/model/index.md
#	docs/en/api/mp_math/angle.md
#	docs/en/api/mp_math/const.md
#	docs/en/api/mp_math/equation.md
#	docs/en/api/mp_math/line.md
#	docs/en/api/mp_math/mp_math_typing.md
#	docs/en/api/mp_math/plane.md
#	docs/en/api/mp_math/point.md
#	docs/en/api/mp_math/segment.md
#	docs/en/api/mp_math/utils.md
#	docs/en/api/mp_math/vector.md
#	docs/en/api/presets/model/index.md
#	docs/ja/api/mp_math/angle.md
#	docs/ja/api/mp_math/const.md
#	docs/ja/api/mp_math/equation.md
#	docs/ja/api/mp_math/line.md
#	docs/ja/api/mp_math/mp_math_typing.md
#	docs/ja/api/mp_math/plane.md
#	docs/ja/api/mp_math/point.md
#	docs/ja/api/mp_math/segment.md
#	docs/ja/api/mp_math/utils.md
#	docs/ja/api/mp_math/vector.md
#	docs/ja/api/presets/model/index.md
#	mkdoc.bat
This commit is contained in:
2024-08-29 13:23:30 +08:00
16 changed files with 3185 additions and 52 deletions

View File

@ -1,14 +1,10 @@
---
title: mbcp.mp_math.angle
---
### **class** `Angle`
### **class** `AnyAngle(Angle)`
### *method* `__init__(self, value: float, is_radian: bool = False)`
任意角度。
**引数**:
- value: 角度或弧度值
@ -17,7 +13,6 @@ title: mbcp.mp_math.angle
<details>
<summary> <i>ソースコード</i> </summary>
```python
def __init__(self, value: float, is_radian: bool=False):
@ -35,19 +30,16 @@ def __init__(self, value: float, is_radian: bool=False):
</details>
### `@property`
### *method* `complementary(self) -> AnyAngle`
余角两角的和为90°。
**戻り値**:
- 余角
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -62,19 +54,16 @@ def complementary(self) -> 'AnyAngle':
</details>
### `@property`
### *method* `supplementary(self) -> AnyAngle`
补角两角的和为180°。
**戻り値**:
- 补角
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -89,19 +78,16 @@ def supplementary(self) -> 'AnyAngle':
</details>
### `@property`
### *method* `degree(self) -> float`
角度。
**戻り値**:
- 弧度
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -116,19 +102,16 @@ def degree(self) -> float:
</details>
### `@property`
### *method* `minimum_positive(self) -> AnyAngle`
最小正角。
**戻り値**:
- 最小正角度
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -143,19 +126,16 @@ def minimum_positive(self) -> 'AnyAngle':
</details>
### `@property`
### *method* `maximum_negative(self) -> AnyAngle`
最大负角。
**戻り値**:
- 最大负角度
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -170,19 +150,16 @@ def maximum_negative(self) -> 'AnyAngle':
</details>
### `@property`
### *method* `sin(self) -> float`
正弦值。
**戻り値**:
- 正弦值
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -197,19 +174,16 @@ def sin(self) -> float:
</details>
### `@property`
### *method* `cos(self) -> float`
余弦值。
**戻り値**:
- 余弦值
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -224,19 +198,16 @@ def cos(self) -> float:
</details>
### `@property`
### *method* `tan(self) -> float`
正切值。
**戻り値**:
- 正切值
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -251,19 +222,16 @@ def tan(self) -> float:
</details>
### `@property`
### *method* `cot(self) -> float`
余切值。
**戻り値**:
- 余切值
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -278,19 +246,16 @@ def cot(self) -> float:
</details>
### `@property`
### *method* `sec(self) -> float`
正割值。
**戻り値**:
- 正割值
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -305,19 +270,16 @@ def sec(self) -> float:
</details>
### `@property`
### *method* `csc(self) -> float`
余割值。
**戻り値**:
- 余割值
<details>
<summary> <i>ソースコード</i> </summary>
```python
@property
@ -331,11 +293,9 @@ def csc(self) -> float:
```
</details>
### *method* `self + other: AnyAngle => AnyAngle`
<details>
<summary> <i>ソースコード</i> </summary>
```python
def __add__(self, other: 'AnyAngle') -> 'AnyAngle':
@ -343,11 +303,9 @@ def __add__(self, other: 'AnyAngle') -> 'AnyAngle':
```
</details>
### *method* `__eq__(self, other)`
<details>
<summary> <i>ソースコード</i> </summary>
```python
def __eq__(self, other):
@ -355,11 +313,9 @@ def __eq__(self, other):
```
</details>
### *method* `self - other: AnyAngle => AnyAngle`
<details>
<summary> <i>ソースコード</i> </summary>
```python
def __sub__(self, other: 'AnyAngle') -> 'AnyAngle':
@ -367,11 +323,9 @@ def __sub__(self, other: 'AnyAngle') -> 'AnyAngle':
```
</details>
### *method* `self * other: float => AnyAngle`
<details>
<summary> <i>ソースコード</i> </summary>
```python
def __mul__(self, other: float) -> 'AnyAngle':
@ -380,11 +334,9 @@ def __mul__(self, other: float) -> 'AnyAngle':
</details>
### `@overload`
### *method* `self / other: float => AnyAngle`
<details>
<summary> <i>ソースコード</i> </summary>
```python
@overload
@ -394,11 +346,9 @@ def __truediv__(self, other: float) -> 'AnyAngle':
</details>
### `@overload`
### *method* `self / other: AnyAngle => float`
<details>
<summary> <i>ソースコード</i> </summary>
```python
@overload
@ -407,11 +357,9 @@ def __truediv__(self, other: 'AnyAngle') -> float:
```
</details>
### *method* `self / other`
<details>
<summary> <i>ソースコード</i> </summary>
```python
def __truediv__(self, other):