Debian Codegraph @

vendor/github.com/xyproto/gfx/degrees.go

raw
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 }