|
AcousticTracer 0.1.0
An acoustic raytracing library.
|
Groups three floats to represent a vector of size 3. More...
#include <at_math.h>
Data Fields | |
| struct { | |
| }; | |
| float | arr [3] |
Related Symbols | |
(Note that these are not member symbols.) | |
| static AT_Vec3 | AT_vec3 (float x, float y, float z) |
| AT_Vec3 constructor for a given point. | |
| static AT_Vec3 | AT_vec3_zero (void) |
| AT_Vec3 constructor for a zero initialised vector. | |
| static AT_Vec3 | AT_vec3_add (AT_Vec3 a, AT_Vec3 b) |
| Adds two AT_Vec3. | |
| static AT_Vec3 | AT_vec3_sub (AT_Vec3 a, AT_Vec3 b) |
| Subtracts two AT_Vec3. | |
| static AT_Vec3 | AT_vec3_mul (AT_Vec3 a, AT_Vec3 b) |
| Product of two AT_Vec3. | |
| static AT_Vec3 | AT_vec3_inv (AT_Vec3 v) |
| Calculates the inverse of a vector. | |
| static AT_Vec3 | AT_vec3_scale (AT_Vec3 v, float s) |
| Scales an AT_Vec3 by a given scalar. | |
| static float | AT_vec3_dot (AT_Vec3 a, AT_Vec3 b) |
| Performs vector dot operation on two given AT_Vec3. | |
| static AT_Vec3 | AT_vec3_cross (AT_Vec3 a, AT_Vec3 b) |
| Performs vector cross multiplication on two given AT_Vec3. | |
| static float | AT_vec3_length (AT_Vec3 v) |
| Calculate the length of an AT_Vec3. | |
| static AT_Vec3 | AT_vec3_normalize (AT_Vec3 v) |
| Normalise a given vector to be within 0.0 -> 1.0. | |
| static float | AT_vec3_distance (AT_Vec3 a, AT_Vec3 b) |
| Calculates the distance between two AT_Vec3's. | |
| static float | AT_vec3_distance_sq (AT_Vec3 a, AT_Vec3 b) |
| Calculates the squared distance between two AT_Vec3's. | |
Groups three floats to represent a vector of size 3.
| struct { ... } AT_Vec3 |
Struct representation of a 3D vector
| float AT_Vec3::arr[3] |
Array representation to enable iteration.