Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Trigonometric functions
[Library Functions]


Functions

template<int N, typename T> ShGeneric< N, T > SH::acos (const ShGeneric< N, T > &var)
 Arccosine.

template<int N, typename T> ShGeneric< N, T > SH::asin (const ShGeneric< N, T > &var)
 Arcsine.

template<int N, typename T> ShGeneric< N, T > SH::atan (const ShGeneric< N, T > &var)
 Arctangent.

template<int N, typename T> ShGeneric< N, T > SH::atan2 (const ShGeneric< N, T > &y, const ShGeneric< N, T > &x)
 Arctangent of two variables.

template<int N, typename T> ShGeneric< N, T > SH::cos (const ShGeneric< N, T > &var)
 Cosine.

template<int N, typename T> ShGeneric< N, T > SH::sin (const ShGeneric< N, T > &var)
 Sine.

template<int N, typename T> ShGeneric< N, T > SH::tan (const ShGeneric< N, T > &var)
 Tangent.


Detailed Description

Todo:
tan, atan, atan2, hyperbolic functions, secant, cosecant, etc.

Function Documentation

template<int N, typename T>
ShGeneric< N, T > SH::acos const ShGeneric< N, T > &  var  )  [inline]
 

Arccosine.

Operates componentwise on tuples. A value of x in [-1, 1] gives a result in [0, pi]. Input values outside the range [-1,1] will give undefined results.

Definition at line 38 of file ShLibTrigImpl.hpp.

template<int N, typename T>
ShGeneric< N, T > SH::asin const ShGeneric< N, T > &  var  )  [inline]
 

Arcsine.

Operates componentwise on tuples. A value of x in [-1, 1] gives a result in [-pi/2, pi/2]. Input values outside the range [-1,1] will give undefined results.

Definition at line 47 of file ShLibTrigImpl.hpp.

template<int N, typename T>
ShGeneric< N, T > SH::atan const ShGeneric< N, T > &  var  )  [inline]
 

Arctangent.

Operates componentwise on tuples. Gives a result in [-pi/2, pi/2].

Definition at line 56 of file ShLibTrigImpl.hpp.

template<int N, typename T>
ShGeneric< N, T > SH::atan2 const ShGeneric< N, T > &  y,
const ShGeneric< N, T > &  x
[inline]
 

Arctangent of two variables.

Operates componentwise on tuples of y/x. Gives a result in [-pi/2, pi/2].

Definition at line 65 of file ShLibTrigImpl.hpp.

template<int N, typename T>
ShGeneric< N, T > SH::cos const ShGeneric< N, T > &  var  )  [inline]
 

Cosine.

Operates componentwise on tuples. Returns the cosine of x. Any value of x gives a result in the range [-1,1].

Definition at line 74 of file ShLibTrigImpl.hpp.

Referenced by SH::rotate(), and SH::ShQuaternion< B, T >::ShQuaternion().

template<int N, typename T>
ShGeneric< N, T > SH::sin const ShGeneric< N, T > &  var  )  [inline]
 

Sine.

Operates componentwise on tuples. Returns the sine of x. Any value of x gives a result in the range [-1,1].

Definition at line 83 of file ShLibTrigImpl.hpp.

Referenced by SH::rotate(), and SH::ShQuaternion< B, T >::ShQuaternion().

template<int N, typename T>
ShGeneric< N, T > SH::tan const ShGeneric< N, T > &  var  )  [inline]
 

Tangent.

Operates componentwise on tuples. Returns the tangent of x. Equivalent to sin(x)/cos(x).

Definition at line 92 of file ShLibTrigImpl.hpp.


Generated on Mon Oct 18 14:17:52 2004 for Sh by doxygen 1.3.7