Int 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.

f_sqrti64

uint64 f_sqrti64(uint64 value);

Description: Integer square root.

f_normalize_2di64

boolean f_normalize_2di64(int64 *point, int64 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_3di64

boolean f_normalize_3di64(int64 *point, int64 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_intersect2di64

void f_intersect2di64(int64 *output, int64 *line_a0, int64 *line_a1, int64 *line_b0, int64 *line_b1);

Description: Inter sects two 2d integer lines.