PER Firmware
Loading...
Searching...
No Matches
vector3.c File Reference

Implementation of 3D vector operations. More...

#include "linear_algebra.h"
#include <math.h>
Include dependency graph for vector3.c:

Functions

vec3_t vec3_add (const vec3_t a, const vec3_t b)
 
vec3_t vec3_sub (const vec3_t a, const vec3_t b)
 
vec3_t vec3_scale (const vec3_t vec, float scalar)
 
float vec3_mag (const vec3_t vec)
 
vec3_t vec3_normalize (const vec3_t vec)
 

Detailed Description

Implementation of 3D vector operations.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ vec3_add()

vec3_t vec3_add ( const vec3_t a,
const vec3_t b )
Here is the caller graph for this function:

◆ vec3_mag()

float vec3_mag ( const vec3_t vec)
Here is the caller graph for this function:

◆ vec3_normalize()

vec3_t vec3_normalize ( const vec3_t vec)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vec3_scale()

vec3_t vec3_scale ( const vec3_t vec,
float scalar )
Here is the caller graph for this function:

◆ vec3_sub()

vec3_t vec3_sub ( const vec3_t a,
const vec3_t b )
Here is the caller graph for this function: