0.3.1

Data Structures

struct  int32_vec2_t
 2-vector of signed 32-bit component values. More...
 

Macros

#define INT32_VEC2_INITIALIZER(x, y)
 2-vector initializer.
 
#define INT32_VEC2(x, y)
 2-vector.
 

Functions

static void int32_vec2_zero (int32_vec2_t *result)
 Not yet documented.
 
static void int32_vec2_dup (const int32_vec2_t *restrict v0, int32_vec2_t *restrict result)
 Not yet documented.
 
static void int32_vec2_add (const int32_vec2_t *restrict v0, const int32_vec2_t *restrict v1, int32_vec2_t *restrict result)
 Not yet documented.
 
static void int32_vec2_sub (const int32_vec2_t *restrict v0, const int32_vec2_t *restrict v1, int32_vec2_t *restrict result)
 Not yet documented.
 
static void int32_vec2_scale (int8_t scalar, const int32_vec2_t *restrict v0, int32_vec2_t *restrict result)
 Not yet documented.
 
static void int32_vec2_scaled (int8_t scalar, int32_vec2_t *in_out)
 Not yet documented.
 
size_t int32_vec2_str (const int32_vec2_t *v0, char *buffer)
 Not yet documented.
 

Detailed Description

Description goes here.


Data Structure Documentation

◆ int32_vec2_t

struct int32_vec2_t

2-vector of signed 32-bit component values.

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

Macro Definition Documentation

◆ INT32_VEC2_INITIALIZER

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

2-vector initializer.

Parameters
xThe X component.
yThe Y component.

◆ INT32_VEC2

#define INT32_VEC2 (   x,
 
)
Value:
(x), \
(y) \
})
2-vector of signed 32-bit component values.
Definition: int32.h:19

2-vector.

Parameters
xThe X component.
yThe Y component.

Function Documentation

◆ int32_vec2_zero()

static void int32_vec2_zero ( int32_vec2_t result)
inlinestatic

Not yet documented.

Parameters
[out]resultNot yet documented.

◆ int32_vec2_dup()

static void int32_vec2_dup ( const int32_vec2_t *restrict  v0,
int32_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ int32_vec2_add()

static void int32_vec2_add ( const int32_vec2_t *restrict  v0,
const int32_vec2_t *restrict  v1,
int32_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ int32_vec2_sub()

static void int32_vec2_sub ( const int32_vec2_t *restrict  v0,
const int32_vec2_t *restrict  v1,
int32_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ int32_vec2_scale()

static void int32_vec2_scale ( int8_t  scalar,
const int32_vec2_t *restrict  v0,
int32_vec2_t *restrict  result 
)
inlinestatic

Not yet documented.

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

◆ int32_vec2_scaled()

static void int32_vec2_scaled ( int8_t  scalar,
int32_vec2_t in_out 
)
inlinestatic

Not yet documented.

Parameters
scalarNot yet documented.
in_outNot yet documented.

◆ int32_vec2_str()

size_t int32_vec2_str ( const int32_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.