Integer vector math

Vector math for integer types.

f_sqrti

long f_sqrti(long value);

Description: Integer square root.

f_normalize_2di

boolean f_normalize_2di(int *point, int fixed_point_multiplyer);

Description: Normalizes a 2D vector of integers. The fixed_point_multiplyer is used to set what is considerd to be one.

f_normalize_3di

boolean f_normalize_3di(int *point, int fixed_point_multiplyer);

Description: Normalizes a 2D vector of integers. The fixed_point_multiplyer is used to set what is considerd to be one.

f_intersect2di

void f_intersect2di(int *output, int *line_a0, int *line_a1, int *line_b0, int *line_b1);

Description: Inter sects two 2d integer lines.