Monado OpenXR Runtime
m_vec3.h File Reference

C vec3 math library. More...

#include "xrt/xrt_defines.h"
#include "m_mathinclude.h"
#include <float.h>
Include dependency graph for m_vec3.h:

Go to the source code of this file.

Typedefs

typedef float m_vec3_float_arr[3]
 

Functions

static struct xrt_vec3 m_vec3_mul (struct xrt_vec3 l, struct xrt_vec3 r)
 
static struct xrt_vec3 m_vec3_mul_scalar (struct xrt_vec3 l, float r)
 
static struct xrt_vec3 m_vec3_add (struct xrt_vec3 l, struct xrt_vec3 r)
 
static struct xrt_vec3 m_vec3_sub (struct xrt_vec3 l, struct xrt_vec3 r)
 
static struct xrt_vec3 m_vec3_div (struct xrt_vec3 l, struct xrt_vec3 r)
 
static struct xrt_vec3 m_vec3_div_scalar (struct xrt_vec3 l, float r)
 
static struct xrt_vec3 m_vec3_inverse (struct xrt_vec3 v)
 
static float m_vec3_dot (struct xrt_vec3 l, struct xrt_vec3 r)
 
static float m_vec3_len_sqrd (struct xrt_vec3 l)
 
static float m_vec3_len (struct xrt_vec3 l)
 
static struct xrt_vec3 m_vec3_normalize (struct xrt_vec3 l)
 
static float m_vec3_angle (struct xrt_vec3 l, struct xrt_vec3 r)
 
static struct xrt_vec3 m_vec3_project (struct xrt_vec3 project_this, struct xrt_vec3 onto_this)
 
static struct xrt_vec3 m_vec3_orthonormalize (struct xrt_vec3 leave_this_alone, struct xrt_vec3 change_this_one)
 
static struct xrt_vec3 m_vec3_lerp (struct xrt_vec3 from, struct xrt_vec3 to, float amount)
 
static bool m_vec3_equal_exact (struct xrt_vec3 l, struct xrt_vec3 r)
 
static m_vec3_float_arr * m_vec3_ptr_to_float_arr_ptr (struct xrt_vec3 *ptr)
 

Detailed Description