Thingiverse
Triangle Calculator Function for OpenSCAD
by SavageRodent
7
Downloads
2
Likes
0
Makes
Triangle Calculator
The “trical” function is heavily based on the module triangle_solver by lar3ry, https://www.thingiverse.com/thing:4859001
WHAT DOSE IT DO?
The trical() function takes three known pieces of information about a triangle and uses them to calculate the remaining sides and angles.
The function returns a vector containing six numbers, these are the three internal angles and the lengths of the three sides.
[angle_A, angle_B, angle_C, side_a, side_b, side_c]
This function makes it quick and easy to perform trigonometry calculations. The returned data can be used for things such as position, rotating and scaling of the component parts of whatever you're designing.
HOW TO USE IT:
Input three known pieces of information about the triangle, at least one of which must be a side.
Input values don't have to be labelled, but if they're not, you must put them in order, with the unknown values input as "0" or "undef".
trical(C=90, a=3, b=4); valid input
The “trical” function is heavily based on the module triangle_solver by lar3ry, https://www.thingiverse.com/thing:4859001
WHAT DOSE IT DO?
The trical() function takes three known pieces of information about a triangle and uses them to calculate the remaining sides and angles.
The function returns a vector containing six numbers, these are the three internal angles and the lengths of the three sides.
[angle_A, angle_B, angle_C, side_a, side_b, side_c]
This function makes it quick and easy to perform trigonometry calculations. The returned data can be used for things such as position, rotating and scaling of the component parts of whatever you're designing.
HOW TO USE IT:
Input three known pieces of information about the triangle, at least one of which must be a side.
Input values don't have to be labelled, but if they're not, you must put them in order, with the unknown values input as "0" or "undef".
trical(C=90, a=3, b=4); valid input
SavageRodent also publishes on
58 additional models across 1 more platforms
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!