operator ==(Pose, Pose)
Compares two poses for equality.
Read time 1 minuteLast updated 11 days ago
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.