Vector.h File Reference

#include "Math.h"
#include <iosfwd>
#include "Point.h"

Go to the source code of this file.

Data Structures

class  Vector

Functions

Vector operator * (double s, const Vector &v)
double Dot (const Vector &v1, const Vector &v2)
Vector Cross (const Vector &v1, const Vector &v2)
Vector Min (const Vector &p1, const Vector &p2)
Vector Max (const Vector &p1, const Vector &p2)
std::ostream & operator<< (std::ostream &, const Vector &v)


Detailed Description

Definition in file Vector.h.


Function Documentation

Vector Cross const Vector v1,
const Vector v2
[inline]
 

Definition at line 146 of file Vector.h.

References Vector::x(), Vector::y(), and Vector::z().

Referenced by Triangle::intersect(), Cyl::intersect(), Triangle::normal(), and PinholeCamera::preprocess().

double Dot const Vector v1,
const Vector v2
[inline]
 

Definition at line 141 of file Vector.h.

References Vector::x(), Vector::y(), and Vector::z().

Referenced by Triangle::intersect(), Sphere::intersect(), Ring::intersect(), Plane::intersect(), Cyl::intersect(), Cyl::normal(), Plane::Plane(), Ring::Ring(), and LambertianMaterial::shade().

Vector Max const Vector p1,
const Vector p2
[inline]
 

Definition at line 158 of file Vector.h.

References Max(), Vector::x(), Vector::y(), and Vector::z().

Referenced by BoundingBox::extend(), Max(), Vector::maxComponent(), and Color::maxComponent().

Vector Min const Vector p1,
const Vector p2
[inline]
 

Definition at line 153 of file Vector.h.

References Min(), Vector::x(), Vector::y(), and Vector::z().

Referenced by BoundingBox::extend(), Min(), and Vector::minComponent().

Vector operator * double  s,
const Vector v
[inline]
 

Definition at line 137 of file Vector.h.

References Vector::x(), Vector::y(), and Vector::z().

std::ostream& operator<< std::ostream &  ,
const Vector v
 

Definition at line 8 of file Vector.cc.

References Vector::x(), Vector::y(), and Vector::z().


Generated on Tue Jan 29 21:34:55 2008 for specter by  doxygen 1.4.6