508 B
508 B
Vector2::operator!=
bool operator!=(const Vector2& other) const
判断两个向量是否不相等。
参数:
other- 要比较的向量
返回: bool - 如果任何分量差的绝对值大于等于 EPSILON 则返回 true
线程安全: ✅
复杂度: O(1)
示例:
Vector2 a(1.0f, 2.0f);
Vector2 b(3.0f, 4.0f);
bool notEqual = (a != b); // true
相关文档
- Vector2 总览
operator==- 相等比较