~vladh/hare-glm

ac827f1f81a9cb56210be09782488a5a075a4ca6 — Vlad-Stefan Harbuz 4 months ago 94c38ea
add deg() and rad()
1 files changed, 9 insertions(+), 0 deletions(-)

A util.ha
A util.ha => util.ha +9 -0
@@ 0,0 1,9 @@
use math;

export fn rad(deg: f32) f32 = {
	return deg * math::PI / 180.0;
};

export fn deg(rad: f32) f32 = {
	return rad * 180.0 / math::PI;
};