Contents

clamp(to:)

Clamps the mutable entity to the specified rectangle.

Declaration

mutating func clamp(to rect: Self.Rect)

Parameters

  • rect:

    The rectangle that defines the clamp volume.