25 lines
469 B
Markdown
25 lines
469 B
Markdown
|
|
# Vector4::operator!=
|
|||
|
|
|
|||
|
|
```cpp
|
|||
|
|
bool operator!=(const Vector4& other) const
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
判断两个向量是否不相等。
|
|||
|
|
|
|||
|
|
**参数:**
|
|||
|
|
- `other` - 要比较的向量
|
|||
|
|
|
|||
|
|
**返回:** `bool` - 如果任何分量差的绝对值大于等于 EPSILON 则返回 true,否则返回 false
|
|||
|
|
|
|||
|
|
**示例:**
|
|||
|
|
|
|||
|
|
```cpp
|
|||
|
|
Vector4 a(1.0f, 2.0f, 3.0f, 4.0f);
|
|||
|
|
Vector4 b(5.0f, 6.0f, 7.0f, 8.0f);
|
|||
|
|
bool ne = (a != b); // true
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
## 相关文档
|
|||
|
|
|
|||
|
|
- [Vector4 总览](vector4.md) - 返回类总览
|