From 4c823f57959a5d821a9f00d8e8c7f57c08ac2ded Mon Sep 17 00:00:00 2001 From: Martin Lehoux Date: Sun, 5 Apr 2020 23:34:05 -0700 Subject: feat - Camera VFOV --- utils.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils.go') diff --git a/utils.go b/utils.go index ca40e87..a0d0e7c 100644 --- a/utils.go +++ b/utils.go @@ -1,5 +1,7 @@ package main +import "math" + // FMin return mins of floats func FMin(a float64, b float64) float64 { if a >= b { @@ -7,3 +9,7 @@ func FMin(a float64, b float64) float64 { } return b } + +func DegreesToRadians(degrees float64) float64 { + return degrees * 2.0 * math.Pi / 360.0 +} -- cgit v1.3