Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
mod360.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
/*
5 * Authors: see git history
6 *
7 * Copyright (C) 2010 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#ifndef SEEN_MOD360_H
11#define SEEN_MOD360_H
12
13// degree modulo 360; output from 0 to 360 inclusive
14double mod360(double const x);
15// degree module 360; output from -180 to 180
16double mod360symm (double const x);
17
18// radians -> degree modulo 360
19double radians_to_degree_mod360(double rad);
20
21// degrees -> radians modulo 2 Pi
22double degree_to_radians_mod2pi(double degree);
23
24#endif /* !SEEN_MOD360_H */
25
26/*
27 Local Variables:
28 mode:c++
29 c-file-style:"stroustrup"
30 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
31 indent-tabs-mode:nil
32 fill-column:99
33 End:
34*/
35// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
double mod360symm(double const x)
Returns x wrapped around to between -180 and less than 180, or 0 if x isn't finite.
Definition mod360.cpp:36
double degree_to_radians_mod2pi(double degree)
Definition mod360.cpp:47
double radians_to_degree_mod360(double rad)
Definition mod360.cpp:43
double mod360(double const x)
Returns x wrapped around to between 0 and less than 360, or 0 if x isn't finite.
Definition mod360.cpp:19
size_t degree