Clamp Angle
PureClampAngleClamps an angle in degrees, correctly handling the 360/0 wraparound boundary.
Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Angle | float | — | Angle parameter |
| MinAngle | float | — | MinAngle parameter |
| MaxAngle | float | — | MaxAngle parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | float | ReturnValue output |
Example Use Cases
Example 1
Limit a turret's rotation range.
Example 2
Restrict camera pitch to prevent flipping.