Functions
The following functions are available globally.
-
Returns the resulting rotation when applying firstRotation, then secondRotation.
Declaration
Objective-C
extern GSKRotation GSKCombineRotation(GSKRotation firstRotation, GSKRotation secondRotation)
Swift
func GSKCombineRotation(_ firstRotation: GSKRotation, _ secondRotation: GSKRotation) -> GSKRotation
-
Returns the resulting rotation when applying firstRotation, then subtracting secondRotation.
Declaration
Objective-C
extern GSKRotation GSKSubtractRotation(GSKRotation firstRotation, GSKRotation secondRotation)
Swift
func GSKSubtractRotation(_ firstRotation: GSKRotation, _ secondRotation: GSKRotation) -> GSKRotation