### Table of Contents

# Math

Math allows to operate on 2 input values and present the final result on its output port. Various mathematical operators can be easily chosen from the drop down list.

### Operator Inputs

**ON** - (Bool) This input data stream determines whether the operator is considered 'on' or 'off.' You can connect other operators to this input channel such as a **Bool** Helper to activate/deactivate the whole operator.

**Time** - (Time) This input data stream is used to define the local time for the operator when the user wants to override the default system time.

**1: Value** - This input data stream reads in the first number value you want to use for the math operation.

**2: Value** - This input data stream reads in the second number value you want to use for the math operation.

### Operator Outputs

**Value** - This output data stream sends out the result of the selected math operation.

### Rollout Menu

**Input (first)** - defines the data type that will be fed into this port it can either be:

- Float
- Integer
- Vector
- Matrix

**Input (second)** - an optional second value may be used as an parameter for the mathematical calculations.

- None
- Float
- Integer
- Vector
- Matrix

**Function** - select any of the available functions to apply the mathematical operation based on one or two input values. The math functions are context sensitive and they do change based on the input types.

Note: It is beyond the scope of a software manual to introduce someone into the field of vector math or algebra. Check available online resources to brush up on those topics.

Input 1: Float or Integer; Input 2: None

Input 1: Vector ; Input 2: None

**FaceCoordinate** - a useful operation to ensure that any vector lies within a face boundary. All of the vector's components added together will not exceed 1.

In the sample above, all of the object's faces are iterated and a random vector (X,Y,Z) is generated. This random vector must lie within a triangle's face. This Math function ensures that all vector components added together, do not exceed 1.0.

Input 1: Matrix ; Input 2: None

Input 1: Integer or Float ; Input 2: Integer or Float

Important: Arcus Tangens2 is a special function that takes 2 values Y and X. It must be in this order. Input 1 equals Y and Input 2 equals X. To learn more about this function Click HERE

Input 1: Vector ; Input 2: Float

Input 1: Vector ; Input 2: Vector

Circular X,Y,Z Mapping - this functions are useful for generating U Mapping coordinates around a cylindrical object (e.g. Fluid).

Example: Vector 1: is the Position in 3D Space Vector 2: represents the center Position of a virtual disc. The result is a value between 0-1 around the circumference.

Input 1: Vector ; Input 2: Matrix

Input 1: Matrix; Input 2: Matrix

^{©2024, cebas Visual Technology Inc.}