0.3.1
16-bit 2-vector

Data Structures

struct  int16_vec2_t
 2-vector of signed 16-bit component values. More...
 

Macros

#define INT16_VEC2_INITIALIZER(x, y)
 2-vector initializer.
 
#define INT16_VEC2(x, y)
 2-vector setter.
 

Functions

static void int16_vec2_zero (int16_vec2_t *result)
 Not yet documented.
 
static void int16_vec2_dup (const int16_vec2_t *restrict v0, int16_vec2_t *restrict result)
 Not yet documented.
 
static void int16_vec2_add (const int16_vec2_t *restrict v0, const int16_vec2_t *restrict v1, int16_vec2_t *restrict result)
 Not yet documented.
 
static void int16_vec2_sub (const int16_vec2_t *restrict v0, const int16_vec2_t *restrict v1, int16_vec2_t *restrict result)
 Not yet documented.
 
static void int16_vec2_scale (int8_t scalar, const int16_vec2_t *restrict v0, int16_vec2_t *restrict result)
 Not yet documented.
 
static void int16_vec2_scaled (int8_t scalar, int16_vec2_t *in_out)
 Not yet documented.
 
size_t int16_vec2_str (const int16_vec2_t *v0, char *buffer)
 Not yet documented.
 

Detailed Description

Description goes here.


Data Structure Documentation

◆ int16_vec2_t

struct int16_vec2_t

2-vector of signed 16-bit component values.

Data Fields
int16_t x X component.
int16_t y Y component.

Macro Definition Documentation

◆ INT16_VEC2_INITIALIZER

#define INT16_VEC2_INITIALIZER (   x,
 
)
Value:
{ \
(x), \
(y) \
}

2-vector initializer.

Parameters
xThe X component.
yThe Y component.

◆ INT16_VEC2

#define INT16_VEC2 (   x,
 
)
Value:
(x), \
(y) \
})
2-vector of signed 16-bit component values.
Definition: int16_vec2.h:20

2-vector setter.

Parameters
xThe X component.
yThe Y component.

Function Documentation

◆ int16_vec2_zero()

static void int16_vec2_zero ( int16_vec2_t result)
inlinestatic

Not yet documented.

Parameters
[out]resultNot yet documented.

◆ int16_vec2_dup()

static void int16_vec2_dup ( const int16_vec2_t *restrict  v0,
int16_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

Parameters
[in]v0Not yet documented.
[out]resultNot yet documented.

◆ int16_vec2_add()

static void int16_vec2_add ( const int16_vec2_t *restrict  v0,
const int16_vec2_t *restrict  v1,
int16_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

Parameters
[in]v0Not yet documented.
[in]v1Not yet documented.
[out]resultNot yet documented.

◆ int16_vec2_sub()

static void int16_vec2_sub ( const int16_vec2_t *restrict  v0,
const int16_vec2_t *restrict  v1,
int16_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

Parameters
[in]v0Not yet documented.
[in]v1Not yet documented.
[out]resultNot yet documented.

◆ int16_vec2_scale()

static void int16_vec2_scale ( int8_t  scalar,
const int16_vec2_t *restrict  v0,
int16_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

Parameters
scalarNot yet documented.
[in]v0Not yet documented.
[out]resultNot yet documented.

◆ int16_vec2_scaled()

static void int16_vec2_scaled ( int8_t  scalar,
int16_vec2_t in_out 
)
inlinestatic

Not yet documented.

Parameters
scalarNot yet documented.
in_outNot yet documented.

◆ int16_vec2_str()

size_t int16_vec2_str ( const int16_vec2_t v0,
char *  buffer 
)

Not yet documented.

Parameters
v0Not yet documented.
[out]bufferNot yet documented.
Returns
The string length, not counting the NUL character.