0.3.1
16-bit 3-vector

Data Structures

struct  int16_vec3_t
 3-vector of signed 16-bit component values. More...
 

Macros

#define INT16_VEC3_INITIALIZER(x, y, z)
 3-vector initializer.
 
#define INT16_VEC3(x, y, z)
 3-vector setter.
 

Functions

static void int16_vec3_zero (int16_vec3_t *result)
 Not yet documented.
 
static void int16_vec3_dup (const int16_vec3_t *restrict v0, int16_vec3_t *restrict result)
 Not yet documented.
 
static void int16_vec3_add (const int16_vec3_t *restrict v0, const int16_vec3_t *restrict v1, int16_vec3_t *restrict result)
 Not yet documented.
 
static void int16_vec3_sub (const int16_vec3_t *restrict v0, const int16_vec3_t *restrict v1, int16_vec3_t *restrict result)
 Not yet documented.
 
static void int16_vec3_scale (int8_t scalar, const int16_vec3_t *restrict v0, int16_vec3_t *restrict result)
 Not yet documented.
 
static void int16_vec3_scaled (int8_t scalar, int16_vec3_t *in_out)
 Not yet documented.
 
size_t int16_vec3_str (const int16_vec3_t *v0, char *buffer)
 Not yet documented.
 

Detailed Description

Description goes here.


Data Structure Documentation

◆ int16_vec3_t

struct int16_vec3_t

3-vector of signed 16-bit component values.

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

Macro Definition Documentation

◆ INT16_VEC3_INITIALIZER

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

3-vector initializer.

Parameters
xThe X component.
yThe Y component.
zThe Z component.

◆ INT16_VEC3

#define INT16_VEC3 (   x,
  y,
 
)
Value:
(x), \
(y), \
(z) \
})
3-vector of signed 16-bit component values.
Definition: int16_vec3.h:20

3-vector setter.

Parameters
xThe X component.
yThe Y component.
zThe Z component.

Function Documentation

◆ int16_vec3_zero()

static void int16_vec3_zero ( int16_vec3_t result)
inlinestatic

Not yet documented.

Parameters
[out]resultNot yet documented.

◆ int16_vec3_dup()

static void int16_vec3_dup ( const int16_vec3_t *restrict  v0,
int16_vec3_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ int16_vec3_add()

static void int16_vec3_add ( const int16_vec3_t *restrict  v0,
const int16_vec3_t *restrict  v1,
int16_vec3_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ int16_vec3_sub()

static void int16_vec3_sub ( const int16_vec3_t *restrict  v0,
const int16_vec3_t *restrict  v1,
int16_vec3_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ int16_vec3_scale()

static void int16_vec3_scale ( int8_t  scalar,
const int16_vec3_t *restrict  v0,
int16_vec3_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ int16_vec3_scaled()

static void int16_vec3_scaled ( int8_t  scalar,
int16_vec3_t in_out 
)
inlinestatic

Not yet documented.

Parameters
scalarNot yet documented.
in_outNot yet documented.

◆ int16_vec3_str()

size_t int16_vec3_str ( const int16_vec3_t v0,
char *  buffer 
)

Not yet documented.

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