Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
mod360.h File Reference

TODO: insert short description here. More...

Go to the source code of this file.

Functions

double mod360 (double const x)
 Returns x wrapped around to between 0 and less than 360, or 0 if x isn't finite.
 
double mod360symm (double const x)
 Returns x wrapped around to between -180 and less than 180, or 0 if x isn't finite.
 
double radians_to_degree_mod360 (double rad)
 
double degree_to_radians_mod2pi (double degree)
 

Detailed Description

TODO: insert short description here.

Definition in file mod360.h.

Function Documentation

◆ degree_to_radians_mod2pi()

double degree_to_radians_mod2pi ( double  degree)

◆ mod360()

double mod360 ( double const  x)

Returns x wrapped around to between 0 and less than 360, or 0 if x isn't finite.

Definition at line 19 of file mod360.cpp.

Referenced by TextTagAttributes::addToRotate(), mod360symm(), and TextTagAttributes::setRotate().

◆ mod360symm()

double mod360symm ( double const  x)

Returns x wrapped around to between -180 and less than 180, or 0 if x isn't finite.

Definition at line 36 of file mod360.cpp.

References mod360().

Referenced by Inkscape::SelTrans::rotateRequest(), and Inkscape::SelTrans::skewRequest().

◆ radians_to_degree_mod360()

double radians_to_degree_mod360 ( double  rad)

Definition at line 43 of file mod360.cpp.

References Geom::Angle::degrees(), and Geom::Angle::from_radians().