Contents

rotated(by:around:)

Returns a rectangle that results from rotating with the specified quaternion around a pivot point.

Declaration

func rotated(by quaternion: simd_quatd, around pivot: Point3D) -> Rect3D

Parameters

  • quaternion:

    The double-precision quaternion that specifies the rotation.

  • 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