Update API documentation and remove obsolete plan files
This commit is contained in:
29
docs/api/math/vector2/operator-eq.md
Normal file
29
docs/api/math/vector2/operator-eq.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Vector2::operator==
|
||||
|
||||
```cpp
|
||||
bool operator==(const Vector2& other) const
|
||||
```
|
||||
|
||||
判断两个向量是否相等。使用 EPSILON 进行浮点比较。
|
||||
|
||||
**参数:**
|
||||
- `other` - 要比较的向量
|
||||
|
||||
**返回:** `bool` - 如果所有分量差的绝对值都小于 EPSILON 则返回 true
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
Vector2 a(1.0f, 2.0f);
|
||||
Vector2 b(1.0f, 2.0f);
|
||||
bool equal = (a == b); // true
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [Vector2 总览](vector2.md)
|
||||
- [`operator!=`](operator-neq.md) - 不等比较
|
||||
Reference in New Issue
Block a user