MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / applyRotateTransform

Function applyRotateTransform

packages/core/utils/native-helper.ios.ts:244–258  ·  view source on GitHub ↗
(transform: CATransform3D, x: number, y: number, z: number)

Source from the content-addressed store, hash-verified

242}
243
244function applyRotateTransform(transform: CATransform3D, x: number, y: number, z: number): CATransform3D {
245 if (x) {
246 transform = CATransform3DRotate(transform, x * radToDeg, 1, 0, 0);
247 }
248
249 if (y) {
250 transform = CATransform3DRotate(transform, y * radToDeg, 0, 1, 0);
251 }
252
253 if (z) {
254 transform = CATransform3DRotate(transform, z * radToDeg, 0, 0, 1);
255 }
256
257 return transform;
258}
259
260function createUIDocumentInteractionControllerDelegate(): NSObject {
261 @NativeClass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected