☰
Debian Codegraph
@
1.7.1-1
/
/
vendor
/
github.com
/
xyproto
/
gfx
/
degrees.go
☽
☼
vendor/github.com/xyproto/gfx/degrees.go
code
plain
raw
MIT
2019-2025 Peter Hellberg <
[email protected]
>
debian/copyright
1
package gfx
2
3
import "math"
4
5
const degToRad = math.Pi / 180
6
7
// Degrees of arc.
8
type Degrees float64
9
10
// Radians convert degrees to radians.
11
func (d Degrees) Radians() float64 {
12
return float64(d) * degToRad
13
}