Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
Degrees.hpp
Go to the documentation of this file.
1#pragma once
2#include "Angle.hpp"
3#include "Radians.hpp"
4#include <string>
5
6namespace fishnet::math{
11class Degrees final: public __impl::AbstractAngle<Degrees>{
12protected:
13 double normalizedAngle(const double newAngle) const;
14 friend __impl::AbstractAngle<Degrees>;
15public:
16 static Degrees asin(double sine);
17 static Degrees acos(double cosine);
18 static Degrees atan(double tangent);
19 static Degrees atan2(double y, double x);
20
21 explicit Degrees(double deg);
22 explicit Degrees(const Radians & rad);
23 Radians toRadians()const;
24 double sin() const;
25 double cos() const;
26 double tan() const;
27 std::string toString() const noexcept;
28};
29} // namespace fishnet::math
Degrees implementation of Angle.
Definition Degrees.hpp:11
Radians toRadians() const
Definition Degrees.cpp:14
static Degrees asin(double sine)
Definition Degrees.cpp:34
double sin() const
Definition Degrees.cpp:22
static Degrees atan(double tangent)
Definition Degrees.cpp:42
std::string toString() const noexcept
Definition Degrees.cpp:50
double cos() const
Definition Degrees.cpp:26
static Degrees atan2(double y, double x)
Definition Degrees.cpp:46
double tan() const
Definition Degrees.cpp:30
double normalizedAngle(const double newAngle) const
Definition Degrees.cpp:18
static Degrees acos(double cosine)
Definition Degrees.cpp:38
Radians implementation of Angle.
Definition Radians.hpp:11
Definition NumericConcepts.hpp:4