0.3.1
Unsigned 16-bit

Data Structures

struct  uint16_vec2_t
 2-vector of unsigned 16-bit component values. More...
 

Macros

#define UINT16_VEC2_INITIALIZER(x, y)
 2-vector initializer.
 
#define UINT16_VEC2(x, y)
 2-vector.
 

Functions

static void uint16_vec2_zero (uint16_vec2_t *result)
 Not yet documented.
 
static void uint16_vec2_dup (const uint16_vec2_t *restrict v0, uint16_vec2_t *restrict result)
 Not yet documented.
 
static void uint16_vec2_add (const uint16_vec2_t *restrict v0, const uint16_vec2_t *restrict v1, uint16_vec2_t *restrict result)
 Not yet documented.
 
static void uint16_vec2_sub (const uint16_vec2_t *restrict v0, const uint16_vec2_t *restrict v1, uint16_vec2_t *restrict result)
 Not yet documented.
 
static void uint16_vec2_scale (const uint8_t scalar, const uint16_vec2_t *restrict v0, uint16_vec2_t *restrict result)
 Not yet documented.
 
static void uint16_vec2_scaled (const uint8_t scalar, uint16_vec2_t *in_out)
 Not yet documented.
 
size_t uint16_vec2_str (const uint16_vec2_t *v0, char *buffer)
 Not yet documented.
 

Detailed Description

Description goes here.


Data Structure Documentation

◆ uint16_vec2_t

struct uint16_vec2_t

2-vector of unsigned 16-bit component values.

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

Macro Definition Documentation

◆ UINT16_VEC2_INITIALIZER

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

2-vector initializer.

Parameters
xThe X component.
yThe Y component.

◆ UINT16_VEC2

#define UINT16_VEC2 (   x,
 
)
Value:
(x), \
(y) \
})
2-vector of unsigned 16-bit component values.
Definition: uint16.h:19

2-vector.

Parameters
xThe X component.
yThe Y component.

Function Documentation

◆ uint16_vec2_zero()

static void uint16_vec2_zero ( uint16_vec2_t result)
inlinestatic

Not yet documented.

Parameters
[out]resultNot yet documented.

◆ uint16_vec2_dup()

static void uint16_vec2_dup ( const uint16_vec2_t *restrict  v0,
uint16_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ uint16_vec2_add()

static void uint16_vec2_add ( const uint16_vec2_t *restrict  v0,
const uint16_vec2_t *restrict  v1,
uint16_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ uint16_vec2_sub()

static void uint16_vec2_sub ( const uint16_vec2_t *restrict  v0,
const uint16_vec2_t *restrict  v1,
uint16_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ uint16_vec2_scale()

static void uint16_vec2_scale ( const uint8_t  scalar,
const uint16_vec2_t *restrict  v0,
uint16_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ uint16_vec2_scaled()

static void uint16_vec2_scaled ( const uint8_t  scalar,
uint16_vec2_t in_out 
)
inlinestatic

Not yet documented.

Parameters
scalarNot yet documented.
in_outNot yet documented.

◆ uint16_vec2_str()

size_t uint16_vec2_str ( const uint16_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.