aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
blob: e39478c840f15e1b930a3eec016567a96dc7201c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "util.h"

AxisAngle AxisAngleIdentity() {
	return (AxisAngle){Vector3Zero(), 0.0};
}

float signum(float n) {
	if (n > 0.0)
		return 1.0;
	else if (n < 0.0)
		return -1.0;
	else
		return 0.0;
}

void printVector3(Vector3 v) {
	printf("%f %f %f\n", v.x, v.y, v.z);
}