sgdk::Tangent Class Reference
[ZRef Module]

#include <swiss_gd_knife/zref/tangent.hpp>

List of all members.


Detailed Description

This class serves as a function object wrapped around the C++ Standard Library math function std::tan().


Model of



Public Types

typedef double argument_type
typedef double result_type

Public Member Functions

 Tangent ()
 The default constructor.
result_type operator() (const argument_type angle) const


Member Typedef Documentation

typedef double sgdk::Tangent::argument_type
 

The type of Tangent's argument: double.

typedef double sgdk::Tangent::result_type
 

The type of the result: double.


Constructor & Destructor Documentation

sgdk::Tangent::Tangent  )  [inline]
 

Constructs a new Tangent.


Member Function Documentation

result_type sgdk::Tangent::operator() const argument_type  angle  )  const [inline]
 

Returns std::tan(angle).

Parameters:
angle the angle whose tangent is to be evaluated.
Returns:
the tangent of the specified angle.


Swiss GD Knife is hosted by SourceForge.net.