Class TransformMatch
One-to-one matching of placed objects by prefab, position and rotation. Counts must agree and every expected object needs its own observed object: stacked identical prefabs cannot swap by sharing a horizontal position, and a duplicate cannot stand in for a missing object. Rotation compares the quaternion angle, so q and -q are the same.
public static class TransformMatch
- Inheritance
-
objectTransformMatch
Methods
Match(IReadOnlyList<PlacedObject>, IReadOnlyList<PlacedObject>, double, double)
public static void Match(IReadOnlyList<PlacedObject> actual, IReadOnlyList<PlacedObject> expected, double positionTolerance, double angleToleranceDegrees)
Parameters
actualIReadOnlyList<PlacedObject>expectedIReadOnlyList<PlacedObject>positionTolerancedoubleangleToleranceDegreesdouble