Inverse: Difference between revisions

Updated the page
(Created page with "Outputs the inverse of the input rotation. File:Inverse1.png Input: * Rot: rotation value Output: * Rot Inverse: the inverse of the rotation == Details == The inverse of a rotation is the rotation that, when combined with the original rotation, equals the identity rotation (0, 0, 0). In math, the inverse of a value with respect to some operation is the value that "undoes" the operation. For example, the additive inverse of `5` is `-5`, since `5...")
 
(Updated the page)
 
Line 1: Line 1:
{{Block
|image=Inverse.png
|type=s
|folder=math
|input1={{Port|r|Rot}}
|output1={{Port|r|Rot Inverse}}
}}
Outputs the inverse of the input [[rotation]].
Outputs the inverse of the input [[rotation]].
[[File:Inverse1.png]]
Input:
* Rot: rotation value
Output:
* Rot Inverse: the inverse of the rotation


== Details ==
== Details ==
Line 14: Line 13:
In math, the inverse of a value with respect to some operation is the value that "undoes" the operation.
In math, the inverse of a value with respect to some operation is the value that "undoes" the operation.


For example, the additive inverse of `5` is `-5`, since `5 + -5 = 0`. If you add 5, then subtract 5, you get back the original value.
For example, the additive inverse of <code>5</code> is <code>-5</code>, since <code>5 + -5 = 0</code>.
If you add 5, then subtract 5, you get back the original value.


The multiplicative inverse of `5` is `1/5`, since `5 * 1/5 = 1`. If you multiply by 5, then divide by 5, you get back the original value.
The multiplicative inverse of <code>5</code> is <code>1/5</code>, since <code>5 * 1/5 = 1</code>.
If you multiply by 5, then divide by 5, you get back the original value.


The same applies to rotations. The inverse of a rotation can be used to "undo" that rotation. If you combine with a rotation, then combine that with the rotation's inverse, you get back the original rotation.  
The same applies to rotations. The inverse of a rotation can be used to "undo" that rotation.
If you combine with a rotation, then combine that with the rotation's inverse, you get back the original rotation.  


Normally, the inverse of a rotation on it's own is not useful, and is usually combined with another rotation.
Normally, the inverse of a rotation on it's own is not useful, and is usually combined with another rotation.
Line 26: Line 28:
How to subtract rotations:
How to subtract rotations:


[[File:Screenshot_2020-03-07-19-57-40-120_com.martinmagni.fancade.png]]
[[File:Inverse example.png|frameless|center|Example]]
 
 


[[Category:Blocks]]
[[Category:Blocks]]