Contents

rotated(by:around:)

Returns a rectangle that results from applying the specified rotation around a pivot point.

Declaration

func rotated(by rotation: Rotation3D, around pivot: Point3D) -> Rect3D

Parameters

  • rotation:

    The rotation structure that defines the rotation’s angle and axis.

  • pivot:

    The point structure that defines the rotation pivot point.

Return Value

The rectangle that results from applying the specified rotation around a pivot point.

See Also

Transforming a 3D rectangle structure