luxrays::Vector Class Reference

#include <vector.h>

List of all members.

Public Member Functions

 Vector (float _x=0.f, float _y=0.f, float _z=0.f)
 Vector (const Point &p)
Vector operator+ (const Vector &v) const
Vectoroperator+= (const Vector &v)
Vector operator- (const Vector &v) const
Vectoroperator-= (const Vector &v)
bool operator== (const Vector &v) const
Vector operator* (float f) const
Vectoroperator*= (float f)
Vector operator/ (float f) const
Vectoroperator/= (float f)
Vector operator- () const
float operator[] (int i) const
float & operator[] (int i)
float LengthSquared () const
float Length () const
 Vector (const Normal &n)

Public Attributes

float x
float y
float z

Detailed Description

Definition at line 38 of file vector.h.


Constructor & Destructor Documentation

luxrays::Vector::Vector ( float  _x = 0.f,
float  _y = 0.f,
float  _z = 0.f 
) [inline]

Definition at line 42 of file vector.h.

Referenced by operator*(), operator+(), operator-(), and operator/().

luxrays::Vector::Vector ( const Point p  )  [inline, explicit]

Definition at line 120 of file point.h.

luxrays::Vector::Vector ( const Normal n  )  [inline, explicit]

Definition at line 113 of file normal.h.


Member Function Documentation

float luxrays::Vector::Length (  )  const [inline]

Definition at line 113 of file vector.h.

References LengthSquared().

Referenced by luxrays::Triangle::Area(), and luxrays::Normalize().

float luxrays::Vector::LengthSquared (  )  const [inline]

Definition at line 109 of file vector.h.

References x, y, and z.

Referenced by Length(), luxrays::sdl::TriangleLight::Sample_L(), and luxrays::sdl::InfiniteLightPortal::Sample_L().

Vector luxrays::Vector::operator* ( float  f  )  const [inline]

Definition at line 73 of file vector.h.

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

Vector& luxrays::Vector::operator*= ( float  f  )  [inline]

Definition at line 77 of file vector.h.

References x, y, and z.

Vector luxrays::Vector::operator+ ( const Vector v  )  const [inline]

Definition at line 47 of file vector.h.

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

Vector& luxrays::Vector::operator+= ( const Vector v  )  [inline]

Definition at line 51 of file vector.h.

References x, y, and z.

Vector luxrays::Vector::operator- (  )  const [inline]

Definition at line 97 of file vector.h.

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

Vector luxrays::Vector::operator- ( const Vector v  )  const [inline]

Definition at line 58 of file vector.h.

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

Vector& luxrays::Vector::operator-= ( const Vector v  )  [inline]

Definition at line 62 of file vector.h.

References x, y, and z.

Vector luxrays::Vector::operator/ ( float  f  )  const [inline]

Definition at line 84 of file vector.h.

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

Vector& luxrays::Vector::operator/= ( float  f  )  [inline]

Definition at line 89 of file vector.h.

References x, y, and z.

bool luxrays::Vector::operator== ( const Vector v  )  const [inline]

Definition at line 69 of file vector.h.

References x, y, and z.

float& luxrays::Vector::operator[] ( int  i  )  [inline]

Definition at line 105 of file vector.h.

References x.

float luxrays::Vector::operator[] ( int  i  )  const [inline]

Definition at line 101 of file vector.h.

References x.


Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Sat Aug 21 14:06:20 2010 for LuxRays by  doxygen 1.6.3