Incari Studio
1.0.0
1.0.0
  • INCARI Studio Documentation
  • Getting Started
    • Minimum Requirements *
    • Installation and License *
    • Creating a Project
    • Project Objects
      • Screen
      • Scene
    • Scene Objects *
      • Camera
      • Group
      • Mesh
      • Lights
      • List Widget
      • Text
      • Web Sprite
    • Attributes
      • Common Attributes
        • Object
        • Rotation Pivot
        • Sprite
        • Transformation
      • Attribute Types
        • Boolean Attributes
        • Numerical Attributes
        • Color Attributes
        • Asset/Object Attribute
    • Interface *
      • Modules *
        • Logic Editor
        • Project Outliner
  • Toolbox
    • Date Time
      • Now (UTC)
      • System Time
      • Timezone Value
    • Flow Control
      • Branch
      • Is Equal
      • Is Greater Equal
      • Is Less Equal
      • Select Data
      • Sequential
      • Switch
      • Toggle
  • Math
    • Absolute
    • Add
    • Average
    • Boolean
      • AND
      • Negate
      • OR
    • Ceil
    • Clamp
    • Decrement
    • Divide
    • Floor
    • Increment
    • Interpolate
    • Logarithm
    • Math Constant
    • Maximum
    • Minimum
    • Modulo
    • Multiply
    • Power
    • Range Mapper
    • Root
    • Subtract
    • Trigonometry
      • Arc Cosine
      • Arc Sine
      • Arc Tangent
      • Cosine
      • Radian-Degree Converter
      • Sine
      • Tangent
Powered by GitBook
On this page
  • Overview
  • Attributes
  • Inputs
  • Outputs

Was this helpful?

  1. Math

Clamp

PreviousCeilNextDecrement

Last updated 3 years ago

Was this helpful?

Overview

Clamp limits a Numerical Value to a given range, so that it isn't lower than the lower boundary, or higher than the upper boundary.

It is often used as a way of ens

Value

From

To

Result

50

0

100

50

120

0

100

100

-20

0

100

0

-270

-180

180

-180

-20, 1100

0, 0

1920, 1080

0, 1080

Attributes

Attribute
Type
Description

Data Type

Drop-down

The type of Data that will be plugged into the Input Sockets.

From

Defined in the Data Type Attribute.

The default Value of the lower boundary of the range, if there is nothing attached to the From Input Socket.

To

Defined in the Data Type Attribute.

The default Value of the upper boundary of the range, if there is nothing attached to the To Input Socket.

Inputs

Input
Type
Description

Pulse Input (►)

Pulse

A standard Input Pulse, to trigger the execution of the Node.

Value

Defined in the Data Type Attribute.

The Value to be clamped within the range defined in From and To.

From

Defined in the Data Type Attribute.

The Value of the lower boundary of the range.

To

Defined in the Data Type Attribute.

The Value of the upper boundary of the range.

Outputs

Output
Type
Description

Pulse Output (►)

Pulse

A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution.

Result

Defined in the Data Type Attribute.

The clamped Value, based on the three Inputs.