operator ==(Pose, Pose)
Compares two poses for equality.
阅读时间1 分钟最后更新于 11 天前
Definition
- Type: Operator
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static bool operator ==(Pose a, Pose b)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the two poses are equal. Otherwise, false. |
Remarks
Two poses are equal when both their positions and their rotations are equal. The operator compares the positions with the Vector3 equality operator, which treats two positions as equal if they're within a small tolerance of each other. It compares the rotations with Quaternion.Equals, which requires every component to match exactly.