#include "defs.h"
#include <math.h>
Go to the source code of this file.
|
#define | VEC2_EPSILON 1e-7 |
| The vectors of this length and smaller are considered 0.
|
|
|
typedef vec2 | norm2 |
| Normalized vector. Does not do any work to uphold a variants, just is more type-safe. If a function returns a norm2 it must be normalized.
|
|
◆ VEC2_EPSILON
#define VEC2_EPSILON 1e-7 |
The vectors of this length and smaller are considered 0.
◆ norm2
Normalized vector. Does not do any work to uphold a variants, just is more type-safe. If a function returns a norm2 it must be normalized.
◆ vec2_new()
static vec2 vec2_new |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
static |
◆ vec2_zero()
static vec2 vec2_zero |
( |
| ) |
|
|
static |