Expand description
The trig
module contains the UnitNegRange
newtype struct and
trigonometric functions.
Structs§
- The
UnitNegRange
newtype an f64.
A validUnitNegRange
value lies between -1.0 and +1.0 inclusive.
Functions§
- Calculates the length of the other side in a right angled triangle, given the length of one side and the hypotenuse.
See: Pythagorean theorem - Calculate the cosine of the difference of two angles: a - b.
See: angle sum and difference identities. - Calculate the cosine of an Angle from it’s sine and the sign of the cosine.
See:swap_sin_cos
. - Calculate the cosine of the sum of two angles: a + b.
See: angle sum and difference identities. - Calculate the sine of the difference of two angles: a - b.
See: angle sum and difference identities. - Calculate the sine of the sum of two angles: a + b.
See: angle sum and difference identities. - Calculates the length of the other side in a right angled spherical triangle, given the length of one side and the hypotenuse.
See: Spherical law of cosines - Calculate the length of the adjacent side of a right angled spherical triangle, given the cosine of the angle and length of the hypotenuse.
See: Spherical law of cosines - Calculates the length of the hypotenuse in a right angled spherical triangle, given the length of both sides.
See: Spherical law of cosines - Square of the cosine of half the Angle.
See: Half-angle formulae - Square of the sine of half the Angle.
See: Half-angle formulae - Swap the sine into the cosine of an Angle and vice versa.
Uses the identity sin2 + cos2 = 1.
See: Pythagorean identities