Trigonometry
This function block performs common trigonometric operations using degrees and simple ratios. It is ideal for converting angles to ratio values (sine/tangent) or converting ratios back to angles (inverse sine/arc-tangent) for measurement and geometry tasks.
π₯ Inputs
Number Provide a numeric value. For direct functions (Sin, Tan) give an angle in degrees. For inverse functions (Asin, Atan) give a ratio value (range depends on the function).
π€ Outputs
Number The numeric result of the selected trigonometric operation. Output for inverse operations is in degrees.
πΉοΈ Controls
Method Choose the trigonometric operation to apply. Available choices typically include Sin, Asin, Tan, and Atan.
π¨ Features
Easy selection between direct and inverse trigonometric functions via a simple dropdown.
Accepts a single numeric input and returns a single numeric output.
Uses degrees for angle inputs and outputs to remain intuitive for non-technical users.
βοΈ Running mechanism
When the block runs it applies the selected operation to the value you provide:
For
SinandTan: the block treats the input as degrees, converts internally to the correct internal representation, and returns the resulting ratio value.For
AsinandAtan: the block treats the input as a ratio and returns the corresponding angle in degrees.
This allows you to switch between converting an angle into a ratio (useful for projecting lengths or computing components) and converting measured ratios back into angles for reporting or control logic.
π Usage instructions
Feed a numeric value into the
Numberinput.Select the desired operation via the
Methodcontrol.Read the result from the
Numberoutput.
For angle-to-ratio conversions use
SinorTan.For ratio-to-angle conversions use
AsinorAtan.
π‘ Tips and Tricks
Use
Measure Position Distanceto get X and Y distances between two points, then useDivideto produce a ratio andAtanto compute the angle between them.To compute a hypotenuse from side lengths, combine
Square RootandAdd(after squaring components withMultiply) and then useAsinorAtanas needed to get angles.Pair with
Roundto present human-friendly angle values (e.g., round to 1 or 2 decimals).Use
Absolutebefore inverse functions when you only care about the magnitude of a ratio.Combine with
Line Geometrywhen working with drawn lines: use this block to convert between measured ratios and angles for annotations or downstream logic.
π οΈ Troubleshooting
If results look unexpectedly large or small, check whether you should provide an angle (degrees) or a ratio to the
Numberinput depending on the selectedMethod.For inverse functions ensure input ratios are within valid ranges (e.g., values outside the valid domain for
Asinwill not produce meaningful angles).
Last updated
Was this helpful?