#include "vec4.h"
#include <iostream>
#include <cstring>
#include <cmath>
#include "matrix4x4.h"
Include dependency graph for vec4.cpp:

Functions | |
| Vec4 | cross (Vec4 v1, Vec4 v2) |
| Cross product operator. | |
| float | dot (Vec4 v1, Vec4 v2) |
| Calculates the dot product. | |
|
||||||||||||
|
Cross product operator. Calculates the normal vector to the plane described by the input vectors. Sets the fourth cell to zero as a cross product will never be a point.
|
|
||||||||||||
|
Calculates the dot product. We're ignoring the fourth cell for the moment. However, if code is written carefully enough, then it may be included again. |
1.3.9.1