SUAPI-CppWrapper
C++WrapperforSketchUpCAPI
|
#include <Geometry.hpp>
Public Member Functions | |
Radians (const double &rhs) | |
Radians (const Radians &radians) | |
operator double () const | |
Radians & | operator= (const Radians &radians) |
Radians | operator+ (const double value) const |
Radians | operator- (const double value) const |
Radians | operator* (const double multiplier) const |
Radians | operator/ (const double divider) const |
bool | operator== (const Radians &rhs) const |
bool | operator== (const double rhs) const |
double | difference (const Radians &other) const |
bool | closest (const Radians &value) |
Data Fields | |
double | m_val |
Static Public Attributes | |
static constexpr double | PI = 3.141592653589793 |
static constexpr double | PI2 = PI * 2 |
static constexpr double | EPSILON = 0.0000000000005 |
Radians class deals with calculating radians. Usage: Radians(double) - converts double into radians. Negative and values more than 2*pi will be made into a value between 0 and 2*pi.
Definition at line 54 of file Geometry.hpp.
CW::Radians::Radians | ( | const double & | rhs | ) |
Definition at line 48 of file Geometry.cpp.
CW::Radians::Radians | ( | const Radians & | radians | ) |
Copy constructor
Definition at line 60 of file Geometry.cpp.
double CW::Radians::difference | ( | const Radians & | other | ) | const |
Gives the difference between the two radians values as a positive double value.
Definition at line 113 of file Geometry.cpp.
CW::Radians::operator double | ( | ) | const |
Radians can be cast simply into a double without data loss.
Definition at line 65 of file Geometry.cpp.
Radians CW::Radians::operator+ | ( | const double | value | ) | const |
Arithmetic operator overloads. These work like doubles, but will always give a value between 0 and 2*pi
Definition at line 79 of file Geometry.cpp.
Overloaded assignment operator
Definition at line 70 of file Geometry.cpp.