Monado OpenXR Runtime
m_vec2.h File Reference

C vec2 math library. More...

#include "xrt/xrt_defines.h"
#include "m_mathinclude.h"
Include dependency graph for m_vec2.h:

Go to the source code of this file.

Typedefs

typedef float m_vec2_float_arr[2]
 

Functions

static struct xrt_vec2 m_vec2_mul (struct xrt_vec2 l, struct xrt_vec2 r)
 
static struct xrt_vec2 m_vec2_mul_scalar (struct xrt_vec2 l, float r)
 
static struct xrt_vec2 m_vec2_add (struct xrt_vec2 l, struct xrt_vec2 r)
 
static struct xrt_vec2 m_vec2_add_scalar (struct xrt_vec2 l, float r)
 
static struct xrt_vec2 m_vec2_sub (struct xrt_vec2 l, struct xrt_vec2 r)
 
static struct xrt_vec2 m_vec2_sub_scalar (struct xrt_vec2 l, float r)
 
static struct xrt_vec2 m_vec2_div (struct xrt_vec2 l, struct xrt_vec2 r)
 
static struct xrt_vec2 m_vec2_div_scalar (struct xrt_vec2 l, float r)
 
static float m_vec2_len_sqrd (struct xrt_vec2 l)
 
static float m_vec2_len (struct xrt_vec2 l)
 
static void m_vec2_normalize (struct xrt_vec2 *inout)
 
static float m_vec2_dot (struct xrt_vec2 l, struct xrt_vec2 r)
 
static struct xrt_vec2 m_vec2_lerp (struct xrt_vec2 from, struct xrt_vec2 to, float amount)
 
static m_vec2_float_arr * m_vec2_ptr_to_float_arr_ptr (struct xrt_vec2 *ptr)
 

Detailed Description

C vec2 math library.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
See also
xrt_vec2