src/Vec3f.h File Reference

#include <iosfwd>
#include <cmath>
#include <algorithm>
#include <cassert>
#include "defines.h"

Include dependency graph for Vec3f.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vec3f

Functions

Vec3f min (const Vec3f &a, const Vec3f &b)
Vec3f max (const Vec3f &a, const Vec3f &b)
Vec3f operator * (const Vec3f &w, float f)
Vec3f operator * (float f, const Vec3f &w)
Vec3f operator/ (const Vec3f &w, float f)
std::ostream & operator<< (std::ostream &o, const Vec3f &w)
std::istream & operator>> (std::istream &i, Vec3f &w)


Function Documentation

Vec3f max ( const Vec3f a,
const Vec3f b 
) [inline]

component wise maximum of the vectors

Definition at line 267 of file Vec3f.h.

References max(), and Vec3f::mValues.

Vec3f min ( const Vec3f a,
const Vec3f b 
) [inline]

component wise minimum of the vectors

Definition at line 259 of file Vec3f.h.

References min(), and Vec3f::mValues.

Vec3f operator * ( float  f,
const Vec3f w 
) [inline]

scale vector

Definition at line 281 of file Vec3f.h.

References Vec3f::mValues.

Vec3f operator * ( const Vec3f w,
float  f 
) [inline]

scale vector

Definition at line 275 of file Vec3f.h.

References Vec3f::mValues.

Vec3f operator/ ( const Vec3f w,
float  f 
) [inline]

scale by reciprocal

Definition at line 287 of file Vec3f.h.

std::ostream& operator<< ( std::ostream &  o,
const Vec3f w 
)

write to output stream

Definition at line 11 of file Vec3f.cpp.

References Vec3f::mValues.

std::istream& operator>> ( std::istream &  i,
Vec3f w 
)

read from input stream

Definition at line 22 of file Vec3f.cpp.


Generated on Fri Feb 1 00:02:11 2008 for Grayfall by  doxygen 1.5.1