Contents

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