Function

CATransform3DMakeRotation(_:_:_:_:)

Returns a transform that rotates by angle radians about the vector (x, y, z).

Declaration

func CATransform3DMakeRotation(_ angle: CGFloat, _ x: CGFloat, _ y: CGFloat, _ z: CGFloat) -> CATransform3D

Discussion

If the vector has length zero, this function returns the identity transform.

See Also

Creating Transforms

func CATransform3DMakeTranslation(CGFloat, CGFloat, CGFloat) -> CATransform3D

Returns a transform that translates by (tx, ty, tz).

func CATransform3DMakeScale(CGFloat, CGFloat, CGFloat) -> CATransform3D

Returns a transform that scales by (sx, sy, sz).