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.
Clamps the mutable entity to the specified rectangle.
mutating func clamp(to rect: Self.Rect)The rectangle that defines the clamp volume.