feisty meow concerns codebase  2.140
geometric::double_angle Class Reference

double_angle provides a non-templated class for forward declarations. More...

#include <angle.h>

Inheritance diagram for geometric::double_angle:
Collaboration diagram for geometric::double_angle:

Public Member Functions

 double_angle (double init=0, angular_units unit=RADIANS)
 
 double_angle (const angle< double > &to_copy)
 
- Public Member Functions inherited from geometric::angle< double >
 DEFINE_CLASS_NAME ("angle")
 
 angle (double inital_rotation=0, angular_units unit=RADIANS)
 constructs a new angle with "initial_rotation" in the "unit". More...
 
void set (double a, angular_units unit)
 sets the angle to a new rotation "a" in the "unit". More...
 
double get (angular_units unit) const
 retrieves the current angular measure. More...
 
angle operator- (void) const
 returns the negation of this angle. More...
 
angle operator- (const angle &to_subtract) const
 
angle operator+ (const angle &to_add) const
 
angle operator* (double to_multiply) const
 
angle operator/ (double to_divide) const
 
angleoperator+= (const angle &to_add)
 
angleoperator-= (const angle &to_subtract)
 
angleoperator*= (double to_multiply)
 
angleoperator/= (double to_divide)
 
double sine () const
 returns the sin function of this angle. More...
 
double cosine () const
 returns the cos function of this angle. More...
 
double tangent () const
 returns the tan function of this angle. More...
 
virtual int packed_size () const
 Estimates the space needed for the packed structure. More...
 
virtual void pack (basis::byte_array &packed_form) const
 packs the angle for shipping in bytes. More...
 
virtual bool unpack (basis::byte_array &packed_form)
 unpacks the angle from the "packed_form". More...
 

Additional Inherited Members

- Static Public Member Functions inherited from geometric::angle< double >
static angle arctangent (double opposite, double adjacent, basis::outcome &retval)
 returns the atan of the angle. More...
 
static angle arccosine (double adjacent, double hypotenuse, basis::outcome &retval)
 returns the acos of the angle. More...
 
static angle arcsine (double opposite, double hypotenuse, basis::outcome &retval)
 returns the asin of the angle. More...
 

Detailed Description

double_angle provides a non-templated class for forward declarations.

Definition at line 96 of file angle.h.

Constructor & Destructor Documentation

◆ double_angle() [1/2]

geometric::double_angle::double_angle ( double  init = 0,
angular_units  unit = RADIANS 
)
inline

Definition at line 99 of file angle.h.

◆ double_angle() [2/2]

geometric::double_angle::double_angle ( const angle< double > &  to_copy)
inline

Definition at line 101 of file angle.h.


The documentation for this class was generated from the following file: