# Difference between revisions of "Arccos Scalar"

(Conformed layout & updated GUI image.) |
|||

Line 1: | Line 1: | ||

− | + | <div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Trig</categorytree></div> | |

− | + | [[File:ArccosScalar_00_GUI.png|none|470px|Arccos Scalar]] | |

+ | |||

+ | |||

+ | |||

+ | ==Overview== | ||

These nodes output the arc cosine, arc sine or arc tangent of the Input scalar. These are the inverse cosine, inverse sine or inverse tangent of the Input scalar, respectively. Using arc sine as an example, the inverse sine of a value is the number which is the sine of the value. Put another way : | These nodes output the arc cosine, arc sine or arc tangent of the Input scalar. These are the inverse cosine, inverse sine or inverse tangent of the Input scalar, respectively. Using arc sine as an example, the inverse sine of a value is the number which is the sine of the value. Put another way : | ||

Line 12: | Line 16: | ||

It is important to note that for correct results the input to the Arccos scalar node and Arcsin scalar node needs to be between -1 and 1. TG2 doesn't check for this at the time of writing. You can use the Clamp scalar node with a Min value of -1 and a Max value of 1 to ensure this. | It is important to note that for correct results the input to the Arccos scalar node and Arcsin scalar node needs to be between -1 and 1. TG2 doesn't check for this at the time of writing. You can use the Clamp scalar node with a Min value of -1 and a Max value of 1 to ensure this. | ||

− | + | These nodes have no other settings apart from the Input node. | |

+ | |||

'''Settings:''' | '''Settings:''' | ||

− | + | *'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Arcos Scalar nodes in a project. | |

+ | *'''Enable:''' When checked, the node is active, and when unchecked the node is ignored. | ||

+ | |||

'''Error conditions:''' | '''Error conditions:''' | ||

* '''Arccos scalar:''' It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation. | * '''Arccos scalar:''' It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation. | ||

* '''Arcsin scalar:''' It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation. | * '''Arcsin scalar:''' It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation. | ||

+ | |||

+ | |||

+ | <br /n> | ||

[[Category:Trig]] | [[Category:Trig]] |

## Latest revision as of 22:31, 22 April 2022

## Overview[edit]

These nodes output the arc cosine, arc sine or arc tangent of the Input scalar. These are the inverse cosine, inverse sine or inverse tangent of the Input scalar, respectively. Using arc sine as an example, the inverse sine of a value is the number which is the sine of the value. Put another way :

The sine of 1 is 0.017452

The arc sine, or inverse sine, of 0.017452 is 1

The output of this function is in radians. You can use the Radians to degrees scalar node to convert the output to degrees.

It is important to note that for correct results the input to the Arccos scalar node and Arcsin scalar node needs to be between -1 and 1. TG2 doesn't check for this at the time of writing. You can use the Clamp scalar node with a Min value of -1 and a Max value of 1 to ensure this.

These nodes have no other settings apart from the Input node.

**Settings:**

**Name:**This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Arcos Scalar nodes in a project.**Enable:**When checked, the node is active, and when unchecked the node is ignored.

**Error conditions:**

**Arccos scalar:**It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation.**Arcsin scalar:**It is an error for the input value to be outside the range of -1 to 1. The output value is undefined in this situation.

A scalar is a single number. 1, 200.45, -45, -0.2 are all examples of scalar values.

A single object or device in the node network which generates or modifies data and may accept input data or create output data or both, depending on its function. Nodes usually have their own settings which control the data they create or how they modify data passing through them. Nodes are connected together in a network to perform work in a network-based user interface. In Terragen 2 nodes are connected together to describe a scene.