-
Notifications
You must be signed in to change notification settings - Fork 0
Constants and Functions
- pi : 3.14159 ratio between diameter and circumference of a circle
- rad : 57.29578 degrees in a radian for conversions
- clearance : 0.2 arbitrary value for space to leave between mating gears
convert an Angle in Radians to Degrees using formula:\ (Angle in Radians) × 180°/π = Angle in Degrees\ where 1 Radian = 180/π Degrees = 57.296 Degrees\ was called grad(angle).
convert an Angle in Degrees to Radians using formula:
>Angle in Degrees × π/180° = Angle in Radians\
rho x π/180° = / 180°/π\ QED degrees/57.29578 --> radians
was called radian( angle )
Convert a 2 dimensional position in polar coordinates into Cartesian coordinates.
- The input vector must have form \[radius,angle\] were the angles are in degrees.
- It returns a vector of form \[X,Y\]
Adjust polar coords given by r (radius?) and rho to by a rotation ? or a translation ? >return a vector \[x,y\] ? >where x will be radius/cosine(rho) >and y = rad_to_deg(tan(rho) - deg_to_rad(rho)) > i.e. polar_to_cartesian( ev(rb,rho_ra) )
The two angles, theta0 and theta, are used to calculate a mystery value. === sphere_to_cartesian(XYZCoords) convert a 3 dimensional position in polar coordinates into Cartesian coordinates.\ >where XYZCoords is a vector of form [radius,angle,angle] with the angles in degrees >it returns a vector \[X,Y,Z\]
returns 1 when the given number is even and 0 when odd providing a value that, when multiplied by the modulus of a gear, either preserves it, or zeros it in the calculation.
Function to calculate a scalar value using a*phi + r0.