Docs
Introduction
Installation
Usage
Editor
Shapes
Tools
Persistence
Collaboration
User Interface
Assets
Community
Contributing
Translations
Embeds
API Reference
Close
tldraw
/
API
/
@tldraw/primitives
clampRadians
Public Function
Clamp radians within 0 and 2PI
Parameters
Name
Description
r
number
The radian value.
Returns
number
Edit this page
Last edited on 15 June 2023
clamp
CubicSegment2d