Updated method names in MPPGestureRecognizer

This commit is contained in:
Prianka Liz Kariat 2023-06-05 13:21:39 +05:30
parent 0c2a7bee09
commit 56a035cb1b

View File

@ -103,7 +103,7 @@ static const float kLandmarksErrorTolerance = 0.03f;
} }
- (void)assertMultiHandLandmarks:(NSArray<NSArray<MPPNormalizedLandmark *> *> *)multiHandLandmarks - (void)assertMultiHandLandmarks:(NSArray<NSArray<MPPNormalizedLandmark *> *> *)multiHandLandmarks
isApproximatelyEqualToExpectedMultiHandLandmarks: areApproximatelyEqualToExpectedMultiHandLandmarks:
(NSArray<NSArray<MPPNormalizedLandmark *> *> *)expectedMultiHandLandmarks { (NSArray<NSArray<MPPNormalizedLandmark *> *> *)expectedMultiHandLandmarks {
XCTAssertEqual(multiHandLandmarks.count, expectedMultiHandLandmarks.count); XCTAssertEqual(multiHandLandmarks.count, expectedMultiHandLandmarks.count);
if (multiHandLandmarks.count == 0) { if (multiHandLandmarks.count == 0) {
@ -122,7 +122,7 @@ static const float kLandmarksErrorTolerance = 0.03f;
} }
- (void)assertMultiHandWorldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)multiHandWorldLandmarks - (void)assertMultiHandWorldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)multiHandWorldLandmarks
isApproximatelyEqualToExpectedMultiHandWorldLandmarks: areApproximatelyEqualToExpectedMultiHandWorldLandmarks:
(NSArray<NSArray<MPPLandmark *> *> *)expectedMultiHandWorldLandmarks { (NSArray<NSArray<MPPLandmark *> *> *)expectedMultiHandWorldLandmarks {
XCTAssertEqual(multiHandWorldLandmarks.count, expectedMultiHandWorldLandmarks.count); XCTAssertEqual(multiHandWorldLandmarks.count, expectedMultiHandWorldLandmarks.count);
if (expectedMultiHandWorldLandmarks.count == 0) { if (expectedMultiHandWorldLandmarks.count == 0) {
@ -141,7 +141,7 @@ static const float kLandmarksErrorTolerance = 0.03f;
} }
- (void)assertMultiHandGestures:(NSArray<NSArray<MPPCategory *> *> *)multiHandGestures - (void)assertMultiHandGestures:(NSArray<NSArray<MPPCategory *> *> *)multiHandGestures
isApproximatelyEqualToExpectedMultiHandGestures: areApproximatelyEqualToExpectedMultiHandGestures:
(NSArray<NSArray<MPPCategory *> *> *)expectedMultiHandGestures { (NSArray<NSArray<MPPCategory *> *> *)expectedMultiHandGestures {
XCTAssertEqual(multiHandGestures.count, expectedMultiHandGestures.count); XCTAssertEqual(multiHandGestures.count, expectedMultiHandGestures.count);
if (multiHandGestures.count == 0) { if (multiHandGestures.count == 0) {
@ -163,12 +163,12 @@ static const float kLandmarksErrorTolerance = 0.03f;
isApproximatelyEqualToExpectedResult: isApproximatelyEqualToExpectedResult:
(MPPGestureRecognizerResult *)expectedGestureRecognizerResult { (MPPGestureRecognizerResult *)expectedGestureRecognizerResult {
[self assertMultiHandLandmarks:gestureRecognizerResult.landmarks [self assertMultiHandLandmarks:gestureRecognizerResult.landmarks
isApproximatelyEqualToExpectedMultiHandLandmarks:expectedGestureRecognizerResult.landmarks]; areApproximatelyEqualToExpectedMultiHandLandmarks:expectedGestureRecognizerResult.landmarks];
[self assertMultiHandWorldLandmarks:gestureRecognizerResult.worldLandmarks [self assertMultiHandWorldLandmarks:gestureRecognizerResult.worldLandmarks
isApproximatelyEqualToExpectedMultiHandWorldLandmarks:expectedGestureRecognizerResult areApproximatelyEqualToExpectedMultiHandWorldLandmarks:expectedGestureRecognizerResult
.worldLandmarks]; .worldLandmarks];
[self assertMultiHandGestures:gestureRecognizerResult.gestures [self assertMultiHandGestures:gestureRecognizerResult.gestures
isApproximatelyEqualToExpectedMultiHandGestures:expectedGestureRecognizerResult.gestures]; areApproximatelyEqualToExpectedMultiHandGestures:expectedGestureRecognizerResult.gestures];
} }
#pragma mark File #pragma mark File