Subastra
Loading...
Searching...
No Matches
Data Structures | Functions
vec2i.h File Reference
#include "defs.h"
#include "vec2.h"
Include dependency graph for vec2i.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vec2i
 

Functions

static vec2i vec2i_new (i32 x, i32 y)
 {.x = x, .y = y}
 
static vec2i vec2i_zero ()
 {.x = 0, .y = 0}
 
static vec2 vec2i_to_vec2 (vec2i v)
 {.x = (int)v.x, .y = (int)v.y)
 
static bool vec2_eq (vec2i a, vec2i b)
 

Function Documentation

◆ vec2_eq()

static bool vec2_eq ( vec2i  a,
vec2i  b 
)
static

◆ vec2i_new()

static vec2i vec2i_new ( i32  x,
i32  y 
)
static

{.x = x, .y = y}

◆ vec2i_to_vec2()

static vec2 vec2i_to_vec2 ( vec2i  v)
static

{.x = (int)v.x, .y = (int)v.y)

◆ vec2i_zero()

static vec2i vec2i_zero ( )
static

{.x = 0, .y = 0}