FS2_Open
Open source remastering of the Freespace 2 engine
|
Go to the source code of this file.
Macros | |
#define | SMALL_NUM 1e-7 |
#define | SMALLER_NUM 1e-20 |
#define | CONVERT_RADIANS 0.017453 |
#define | UNINITIALIZED_VALUE -12345678.9f |
#define | BIGNUMBER 100000000.0f |
Variables | |
vec3d | vmd_zero_vector = ZERO_VECTOR |
vec3d | vmd_x_vector = { { { 1.0f, 0.0f, 0.0f } } } |
vec3d | vmd_y_vector = { { { 0.0f, 1.0f, 0.0f } } } |
vec3d | vmd_z_vector = { { { 0.0f, 0.0f, 1.0f } } } |
matrix | vmd_identity_matrix = IDENTITY_MATRIX |
#define BIGNUMBER 100000000.0f |
Definition at line 2248 of file vecmat.cpp.
#define CONVERT_RADIANS 0.017453 |
Definition at line 22 of file vecmat.cpp.
#define SMALL_NUM 1e-7 |
Definition at line 20 of file vecmat.cpp.
#define SMALLER_NUM 1e-20 |
Definition at line 21 of file vecmat.cpp.
#define UNINITIALIZED_VALUE -12345678.9f |
Definition at line 30 of file vecmat.cpp.
Definition at line 142 of file vecmat.cpp.
Definition at line 68 of file vecmat.cpp.
Definition at line 1363 of file vecmat.cpp.
float find_nearest_point_on_line | ( | vec3d * | nearest_point, |
const vec3d * | p0, | ||
const vec3d * | p1, | ||
const vec3d * | int_pnt | ||
) |
Definition at line 1209 of file vecmat.cpp.
void get_camera_limits | ( | const matrix * | start_camera, |
const matrix * | end_camera, | ||
float | time, | ||
vec3d * | acc_max, | ||
vec3d * | w_max | ||
) |
Definition at line 2005 of file vecmat.cpp.
Definition at line 2395 of file vecmat.cpp.
Definition at line 2389 of file vecmat.cpp.
Definition at line 768 of file vecmat.cpp.
Definition at line 752 of file vecmat.cpp.
Definition at line 1506 of file vecmat.cpp.
Definition at line 984 of file vecmat.cpp.
Definition at line 1487 of file vecmat.cpp.
Definition at line 1128 of file vecmat.cpp.
void vm_estimate_next_orientation | ( | const matrix * | last_orient, |
const matrix * | current_orient, | ||
matrix * | next_orient | ||
) |
Definition at line 2376 of file vecmat.cpp.
Definition at line 1027 of file vecmat.cpp.
Definition at line 1064 of file vecmat.cpp.
Definition at line 1114 of file vecmat.cpp.
Definition at line 2249 of file vecmat.cpp.
Definition at line 1286 of file vecmat.cpp.
void vm_forward_interpolate | ( | const vec3d * | goal_f, |
const matrix * | orient, | ||
const vec3d * | w_in, | ||
float | delta_t, | ||
float | delta_bank, | ||
matrix * | next_orient, | ||
vec3d * | w_out, | ||
const vec3d * | vel_limit, | ||
const vec3d * | acc_limit, | ||
int | no_overshoot | ||
) |
Definition at line 2061 of file vecmat.cpp.
Definition at line 1444 of file vecmat.cpp.
Attempts to invert a 4x4 matrix.
[in] | m | Pointer to the matrix we want to invert |
[in,out] | invOut | The inverted matrix, or nullptr if inversion is impossible |
Definition at line 2587 of file vecmat.cpp.
Definition at line 1426 of file vecmat.cpp.
Definition at line 49 of file vecmat.cpp.
Definition at line 54 of file vecmat.cpp.
void vm_matrix_interpolate | ( | const matrix * | goal_orient, |
const matrix * | curr_orient, | ||
const vec3d * | w_in, | ||
float | delta_t, | ||
matrix * | next_orient, | ||
vec3d * | w_out, | ||
const vec3d * | vel_limit, | ||
const vec3d * | acc_limit, | ||
int | no_overshoot | ||
) |
Definition at line 1859 of file vecmat.cpp.
Definition at line 1535 of file vecmat.cpp.
Definition at line 1612 of file vecmat.cpp.
Definition at line 1006 of file vecmat.cpp.
Definition at line 1247 of file vecmat.cpp.
void vm_project_point_onto_plane | ( | vec3d * | new_point, |
const vec3d * | point, | ||
const vec3d * | plane_normal, | ||
const vec3d * | plane_point | ||
) |
Definition at line 128 of file vecmat.cpp.
Definition at line 1548 of file vecmat.cpp.
void vm_rot_point_around_line | ( | vec3d * | out, |
const vec3d * | in, | ||
float | angle, | ||
const vec3d * | line_point, | ||
const vec3d * | line_dir | ||
) |
Definition at line 1395 of file vecmat.cpp.
Definition at line 1338 of file vecmat.cpp.
Definition at line 2346 of file vecmat.cpp.
Definition at line 2361 of file vecmat.cpp.
Definition at line 150 of file vecmat.cpp.
Definition at line 655 of file vecmat.cpp.
Definition at line 971 of file vecmat.cpp.
Definition at line 159 of file vecmat.cpp.
Definition at line 178 of file vecmat.cpp.
Definition at line 801 of file vecmat.cpp.
Definition at line 217 of file vecmat.cpp.
Definition at line 228 of file vecmat.cpp.
vec3d* vm_vec_avg4 | ( | vec3d * | dest, |
const vec3d * | src0, | ||
const vec3d * | src1, | ||
const vec3d * | src2, | ||
const vec3d * | src3 | ||
) |
Definition at line 238 of file vecmat.cpp.
Definition at line 196 of file vecmat.cpp.
Definition at line 2572 of file vecmat.cpp.
Definition at line 1415 of file vecmat.cpp.
Definition at line 427 of file vecmat.cpp.
Definition at line 512 of file vecmat.cpp.
Definition at line 548 of file vecmat.cpp.
Definition at line 257 of file vecmat.cpp.
Definition at line 645 of file vecmat.cpp.
Definition at line 687 of file vecmat.cpp.
Definition at line 706 of file vecmat.cpp.
Definition at line 355 of file vecmat.cpp.
Definition at line 417 of file vecmat.cpp.
Definition at line 344 of file vecmat.cpp.
void vm_vec_dist_squared_to_line | ( | const vec3d * | p, |
const vec3d * | l0, | ||
const vec3d * | l1, | ||
vec3d * | nearest, | ||
float * | dist_squared | ||
) |
Definition at line 2543 of file vecmat.cpp.
int vm_vec_dist_to_line | ( | const vec3d * | p, |
const vec3d * | l0, | ||
const vec3d * | l1, | ||
vec3d * | nearest, | ||
float * | dist | ||
) |
Definition at line 2503 of file vecmat.cpp.
Definition at line 312 of file vecmat.cpp.
Definition at line 319 of file vecmat.cpp.
Definition at line 1348 of file vecmat.cpp.
Definition at line 34 of file vecmat.cpp.
Definition at line 39 of file vecmat.cpp.
Definition at line 44 of file vecmat.cpp.
Definition at line 2401 of file vecmat.cpp.
Definition at line 325 of file vecmat.cpp.
Definition at line 371 of file vecmat.cpp.
Definition at line 339 of file vecmat.cpp.
Definition at line 626 of file vecmat.cpp.
Definition at line 460 of file vecmat.cpp.
Definition at line 529 of file vecmat.cpp.
Definition at line 569 of file vecmat.cpp.
Definition at line 471 of file vecmat.cpp.
Definition at line 591 of file vecmat.cpp.
Definition at line 604 of file vecmat.cpp.
Definition at line 614 of file vecmat.cpp.
Definition at line 667 of file vecmat.cpp.
void vm_vec_projection_onto_plane | ( | vec3d * | projection, |
const vec3d * | src, | ||
const vec3d * | unit_normal | ||
) |
Definition at line 112 of file vecmat.cpp.
Definition at line 97 of file vecmat.cpp.
Definition at line 1379 of file vecmat.cpp.
Definition at line 2418 of file vecmat.cpp.
void vm_vec_random_cone | ( | vec3d * | out, |
const vec3d * | in, | ||
float | min_angle, | ||
float | max_angle, | ||
const matrix * | orient | ||
) |
Definition at line 2442 of file vecmat.cpp.
void vm_vec_random_in_circle | ( | vec3d * | out, |
const vec3d * | in, | ||
const matrix * | orient, | ||
float | radius, | ||
int | on_edge | ||
) |
Definition at line 2481 of file vecmat.cpp.
void vm_vec_random_in_sphere | ( | vec3d * | out, |
const vec3d * | in, | ||
const matrix * | orient, | ||
float | radius, | ||
int | on_edge | ||
) |
Definition at line 2494 of file vecmat.cpp.
Definition at line 933 of file vecmat.cpp.
Definition at line 1526 of file vecmat.cpp.
Definition at line 248 of file vecmat.cpp.
Definition at line 266 of file vecmat.cpp.
Definition at line 284 of file vecmat.cpp.
Definition at line 275 of file vecmat.cpp.
Definition at line 293 of file vecmat.cpp.
Definition at line 168 of file vecmat.cpp.
Definition at line 187 of file vecmat.cpp.
Definition at line 959 of file vecmat.cpp.
matrix* vm_vector_2_matrix | ( | matrix * | m, |
const vec3d * | fvec, | ||
const vec3d * | uvec, | ||
const vec3d * | rvec | ||
) |
Definition at line 850 of file vecmat.cpp.
Definition at line 820 of file vecmat.cpp.
matrix* vm_vector_2_matrix_norm | ( | matrix * | m, |
const vec3d * | fvec, | ||
const vec3d * | uvec, | ||
const vec3d * | rvec | ||
) |
Definition at line 891 of file vecmat.cpp.
matrix vmd_identity_matrix = IDENTITY_MATRIX |
Definition at line 28 of file vecmat.cpp.
vec3d vmd_x_vector = { { { 1.0f, 0.0f, 0.0f } } } |
Definition at line 25 of file vecmat.cpp.
vec3d vmd_y_vector = { { { 0.0f, 1.0f, 0.0f } } } |
Definition at line 26 of file vecmat.cpp.
vec3d vmd_z_vector = { { { 0.0f, 0.0f, 1.0f } } } |
Definition at line 27 of file vecmat.cpp.
vec3d vmd_zero_vector = ZERO_VECTOR |
Definition at line 24 of file vecmat.cpp.