From 42462d9253229835800814519593d6af0b5fbfc4 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Tue, 10 Apr 2018 09:06:00 -0600 Subject: Added utility function to linmath --- redist/linmath.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'redist/linmath.c') diff --git a/redist/linmath.c b/redist/linmath.c index 50baeab..f4c3635 100644 --- a/redist/linmath.c +++ b/redist/linmath.c @@ -173,6 +173,13 @@ inline void axisanglefromquat(FLT *angle, FLT *axis, FLT *q) { // Originally from Mercury (Copyright (C) 2009 by Joshua Allen, Charles Lohr, Adam Lowman) // Under the mit/X11 license. +inline void quatset(LinmathQuat q, FLT w, FLT x, FLT y, FLT z) { + q[0] = w; + q[1] = x; + q[2] = y; + q[3] = z; +} + inline void quatsetnone(LinmathQuat q) { q[0] = 1; q[1] = 0; -- cgit v1.2.3