Classes | Functions
vec4d.hpp File Reference

Homogenous vectors for three dimensional space. More...

#include <math.h>
#include <stdint.h>
#include <iostream>
#include <iomanip>
#include "vec3d.hpp"
#include "file.hpp"
#include "error.hpp"

Go to the source code of this file.

Classes

class  Vec4D
 Homogenous vector for three dimensional space. More...

Functions

double norm2 (const Vec4D &vec)
Vec4D cross (const Vec4D &vec1, const Vec4D &vec2)
Vec4D operator* (double x, const Vec4D &vec)
std::ostream & operator<< (std::ostream &os, const Vec4D &vec)

Detailed Description

Homogenous vectors for three dimensional space.

Function Documentation

Vec4D cross ( const Vec4D vec1,
const Vec4D vec2 
)
inline

Only valid for vectors. Output is guaranteed to be a vector.

double norm2 ( const Vec4D vec)
inline
Vec4D operator* ( double  x,
const Vec4D vec 
)
inline

Does not affect w.

std::ostream& operator<< ( std::ostream &  os,
const Vec4D vec 
)
inline