Skip to content

Commit

Permalink
✨ vector: 添加投影向量方法
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Sep 6, 2024
1 parent b580a27 commit 35537c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mbcp/mp_math/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def normalize(self):

def project(self, other: 'Vector3') -> 'Vector3':
r"""
返回自向量在另一个向量上的投影向量
计算自向量在另一个向量上的投影向量
:::tip
投影向量计算公式:
投影向量计算公式,$proj_v(u)$表示向量$u$在向量$v$上的投影向量:
$$ \text{proj}_v(u) = \frac{u \cdot v}{|v|^2} \cdot v $$
:::
Args:
Expand Down

0 comments on commit 35537c5

Please sign in to comment.