Euphoria
angle.h File Reference
#include <iostream>
#include "base/numeric.h"
#include "base/default_interpolate.h"

Go to the source code of this file.

Classes

struct  eu::Angle
 

Namespaces

 eu
 
 eu::convert
 

Functions

Angle eu::get_random_angle (::eu::Random *random)
 
float eu::sin (const Angle &ang)
 
float eu::cos (const Angle &ang)
 
float eu::tan (const Angle &ang)
 
Angle eu::asin (float v)
 
Angle eu::acos (float v)
 
Angle eu::atan (float v)
 
Angle eu::atan2 (float y, float x)
 
Angle eu::operator+ (const Angle &lhs, const Angle &rhs)
 
Angle eu::operator- (const Angle &lhs, const Angle &rhs)
 
Angle eu::operator* (const Angle &lhs, float rhs)
 
Angle eu::operator/ (const Angle &lhs, float rhs)
 
Angle eu::operator* (float rhs, const Angle &lhs)
 
std::string eu::to_string (const Angle &a)
 
bool eu::operator< (const Angle &lhs, const Angle &rhs)
 
bool eu::operator<= (const Angle &lhs, const Angle &rhs)
 
bool eu::operator> (const Angle &lhs, const Angle &rhs)
 
bool eu::operator>= (const Angle &lhs, const Angle &rhs)
 
Angle eu::lerp_angle (const Angle &from, float v, const Angle &to)
 
 eu::DEFAULT_INTERPOLATE (Angle, lerp_angle)
 
 ADD_DEFAULT_FORMATTER (eu::Angle, std::string, eu::to_string)
 
constexpr Angle eu::convert::operator""_deg (long double d)
 
constexpr Angle eu::convert::operator""_rad (long double r)
 

Variables

constexpr Angle eu::one_turn = Angle::from_radians(pi * 2.0f)
 
constexpr Angle eu::half_turn = Angle::from_radians(pi)
 
constexpr Angle eu::quarter_turn = Angle::from_radians(pi / 2.0f)
 
constexpr Angle eu::no_rotation = Angle::from_radians(0.0f)
 

Function Documentation

◆ ADD_DEFAULT_FORMATTER()

ADD_DEFAULT_FORMATTER ( eu::Angle  ,
std::string  ,
eu::to_string   
)