-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vec_Functions.h
42 lines (29 loc) · 930 Bytes
/
Vec_Functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* File: Vec_Functions.h
* Author: travis.patterson
*
* Created on October 31, 2012, 12:05 PM
*/
#include <vector>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <cstdlib>
#include <iostream>
using namespace std;
#ifndef VEC_FUNCTIONS_H
#define VEC_FUNCTIONS_H
//declare a function for 3
//function prototypes for project.
vector<float> scalar_times_vector(float, vector<float>);
float oriLength (vector<float>);
float magnitudeVector (vector<float>);
vector<float> unitVector (vector<float>, float);
vector<float> vecSum (vector<float>, vector<float>);
vector<float> vecDif (vector<float>, vector<float>);
float pointDif (vector<float>, vector<float>);
float dotProd (vector<float>, vector<float>);
float scalarProj (vector<float>, vector<float>);
vector<float> vecProj (vector<float>, vector<float>);
vector<float> crossProd (vector<float>, vector<float>);
#endif /* VEC_FUNCTIONS_H */