|
Space Sim
|
Go to the source code of this file.
Macros | |
| #define | MAX(a, b) |
| #define | MIN(a, b) |
| #define MAX | ( | a, | |
| b ) |
| #define MIN | ( | a, | |
| b ) |
Definition at line 193 of file mathf.h.
Referenced by load_chunks(), and worley().
Definition at line 7 of file mathf.h.
References vec3_normalize(), vec3::x, vec3::y, and vec3::z.
Referenced by apply_planet_velocity(), apply_velocity(), compute_camera_basis(), find_density_normal(), find_surface_entry(), init_random(), look_at_selected_body(), make_atmosphere_sphere_face(), mesh_atmosphere_sphere(), update_light_camera(), and vec3_normalize().
Definition at line 16 of file mathf.h.
References ivec3_normalize(), ivec3::x, vec3::x, ivec3::y, vec3::y, ivec3::z, and vec3::z.
Referenced by ivec3_normalize().
Definition at line 27 of file mathf.h.
References vec3_cross(), vec3::x, vec3::y, and vec3::z.
Referenced by compute_camera_basis(), init_random(), mat4_inverse(), signed_angle_3d(), and vec3_cross().
Definition at line 35 of file mathf.h.
References vec2_scale(), vec2::x, and vec2::y.
Referenced by fbm_noise(), and vec2_scale().
Definition at line 39 of file mathf.h.
References vec3_scale(), vec3::x, vec3::y, and vec3::z.
Referenced by calc_density(), fbm(), fbm_noise(), find_surface_entry(), init_random(), load_chunks(), look_at_selected_body(), make_atmosphere_sphere_face(), precompute_perlin_texture(), precompute_worley_texture(), random3(), resolve_collisions(), and vec3_scale().
Definition at line 43 of file mathf.h.
References vec4_scale(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by apply_planet_velocity(), apply_velocity(), fbm_noise(), perm(), and vec4_scale().
Definition at line 48 of file mathf.h.
References ivec3_dist(), ivec3::x, ivec3::y, and ivec3::z.
Referenced by ivec3_dist(), and load_chunks().
Definition at line 53 of file mathf.h.
References ivec3_sub(), ivec3::x, ivec3::y, and ivec3::z.
Referenced by ivec3_sub().
Definition at line 57 of file mathf.h.
References vec3_sub(), vec3::x, vec3::y, and vec3::z.
Referenced by fbm_noise(), find_surface_entry(), look_at_selected_body(), resolve_collisions(), vec3_dist(), vec3_dist2(), vec3_sub(), and worley().
Definition at line 61 of file mathf.h.
References vec2_add(), vec2::x, and vec2::y.
Referenced by fbm_noise(), and vec2_add().
Definition at line 65 of file mathf.h.
References ivec3_add(), ivec3::x, ivec3::y, and ivec3::z.
Referenced by ivec3_add(), and load_chunks().
Definition at line 69 of file mathf.h.
References ivec3_scale(), ivec3::x, ivec3::y, and ivec3::z.
Referenced by ivec3_scale(), and load_chunks().
Definition at line 73 of file mathf.h.
References vec3_add(), vec3::x, vec3::y, and vec3::z.
Referenced by calc_density(), fbm(), find_density_normal(), find_surface_entry(), make_atmosphere_sphere_face(), resolve_collisions(), update_camera(), update_light_camera(), vec3_add(), and worley().
Definition at line 77 of file mathf.h.
References vec4_add(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by fbm_noise(), get_view_planes(), perm(), and vec4_add().
Definition at line 81 of file mathf.h.
References vec4_sub(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by get_view_planes(), and vec4_sub().
Definition at line 85 of file mathf.h.
References vec3_mul(), vec3::x, vec3::y, and vec3::z.
Referenced by fbm_noise(), and vec3_mul().
Definition at line 89 of file mathf.h.
References vec4_mul(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by perm(), and vec4_mul().
Definition at line 93 of file mathf.h.
References vec3_dist2(), vec3_sub(), vec3::x, vec3::y, and vec3::z.
Referenced by vec3_dist2().
Definition at line 97 of file mathf.h.
References vec3_dist(), vec3_sub(), vec3::x, vec3::y, and vec3::z.
Referenced by vec3_dist().
Definition at line 101 of file mathf.h.
References vec3_dot(), vec3::x, vec3::y, and vec3::z.
Referenced by aabb_in_frustum(), make_look_at(), mat4_inverse(), noise3d(), random3(), resolve_collisions(), signed_angle_3d(), and vec3_dot().
Definition at line 104 of file mathf.h.
References vec2_dot(), vec2::x, and vec2::y.
Referenced by init_water_grid(), and vec2_dot().
|
inline |
Definition at line 107 of file mathf.h.
References vec3_length(), vec3::x, vec3::y, and vec3::z.
Referenced by find_surface_entry(), vec3_length(), and worley().
Definition at line 111 of file mathf.h.
References mat4::a0, mat4::a1, mat4::a2, mat4::a3, mat4::b0, mat4::b1, mat4::b2, mat4::b3, mat4::c0, mat4::c1, mat4::c2, mat4::c3, mat4::d0, mat4::d1, mat4::d2, mat4::d3, mat4_inverse(), vec3_cross(), vec3_dot(), vec3::x, vec3::y, and vec3::z.
Referenced by mat4_inverse(), and update_camera().
|
inline |
Definition at line 143 of file mathf.h.
Referenced by apply_planet_velocity(), apply_velocity(), lerp(), sample_density(), and sample_fbm_density().
|
inline |
Definition at line 147 of file mathf.h.
References clamp().
Referenced by apply_air_acceleration(), clamp(), main(), and unpack_normal().
Definition at line 150 of file mathf.h.
References mat4::a0, mat4::a1, mat4::a2, mat4::a3, mat4::b0, mat4::b1, mat4::b2, mat4::b3, mat4::c0, mat4::c1, mat4::c2, mat4::c3, mat4::d0, mat4::d1, mat4::d2, mat4::d3, mul_m4_v4(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by m4_mul(), and mul_m4_v4().
Definition at line 159 of file mathf.h.
References mat4::a0, mat4::a1, mat4::a2, mat4::a3, mat4::b0, mat4::b1, mat4::b2, mat4::b3, mat4::c0, mat4::c1, mat4::c2, mat4::c3, mat4::d0, mat4::d1, mat4::d2, mat4::d3, m4_mul(), mul_m4_v4(), vec4::w, vec4::x, vec4::y, and vec4::z.
Referenced by get_view_planes(), and m4_mul().
|
inline |
|
inline |
Definition at line 196 of file mathf.h.
References expand_bits().
|
inline |
Definition at line 205 of file mathf.h.
References expand_bits(), and morton().