Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

vector3.inl File Reference

Go to the source code of this file.

Functions

Vector3 operator+ (const Vector3 &lhs, const Vector3 &rhs)
 Basic operations.

Vector3 operator- (const Vector3 &lhs, const Vector3 &rhs)
Vector3 operator- (const Vector3 &v)
Vector3 operator * (const Vector3 &lhs, Real rhs)
Vector3 operator * (Real lhs, const Vector3 &rhs)
Vector3 operator/ (const Vector3 &lhs, Real rhs)
Vector3operator+= (Vector3 &lhs, const Vector3 &rhs)
Vector3operator-= (Vector3 &lhs, const Vector3 &rhs)
Vector3operator *= (Vector3 &lhs, Real rhs)
Vector3operator/= (Vector3 &lhs, Real rhs)
Real operator * (const Vector3 &lhs, const Vector3 &rhs)
 Dot product.

Vector3 operator^ (const Vector3 &lhs, const Vector3 &rhs)
bool feq (const Vector3 &a, const Vector3 &b, Real e)
 Equal: a == b.

bool fneq (const Vector3 &a, const Vector3 &b, Real e)
 Not equal: a != b.

bool fz (const Vector3 &a, Real e)
 Zero: a == 0.

bool fnz (const Vector3 &a, Real e)
 Not zero: a != 0.


Function Documentation

bool feq const Vector3 a,
const Vector3 b,
Real  e
[inline]
 

Equal: a == b.

Definition at line 205 of file vector3.inl.

References sheep::feq(), sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Referenced by build_basis(), fge(), fle(), and fneq().

bool fneq const Vector3 a,
const Vector3 b,
Real  e
[inline]
 

Not equal: a != b.

Definition at line 213 of file vector3.inl.

References sheep::fneq(), sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

bool fnz const Vector3 a,
Real  e
[inline]
 

Not zero: a != 0.

Definition at line 229 of file vector3.inl.

References sheep::fnz(), sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Referenced by toxic::PhotonMap::ApproximateRadiance(), and toxic::PhotonMap::ComputeRadiance().

bool fz const Vector3 a,
Real  e
[inline]
 

Zero: a == 0.

Definition at line 221 of file vector3.inl.

References sheep::fz(), sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Referenced by build_basis().

Real operator * const Vector3 lhs,
const Vector3 rhs
[inline]
 

Dot product.

Definition at line 189 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3 operator * Real  lhs,
const Vector3 rhs
[inline]
 

Definition at line 133 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3 operator * const Vector3 lhs,
Real  rhs
[inline]
 

Definition at line 125 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3& operator *= Vector3 lhs,
Real  rhs
[inline]
 

Definition at line 169 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3 operator+ const Vector3 lhs,
const Vector3 rhs
[inline]
 

Basic operations.

Definition at line 104 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3& operator+= Vector3 lhs,
const Vector3 rhs
[inline]
 

Definition at line 151 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3 operator- const Vector3 v  )  [inline]
 

Definition at line 120 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3 operator- const Vector3 lhs,
const Vector3 rhs
[inline]
 

Definition at line 112 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3& operator-= Vector3 lhs,
const Vector3 rhs
[inline]
 

Definition at line 160 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3 operator/ const Vector3 lhs,
Real  rhs
[inline]
 

Definition at line 141 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3& operator/= Vector3 lhs,
Real  rhs
[inline]
 

Definition at line 178 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.

Vector3 operator^ const Vector3 lhs,
const Vector3 rhs
[inline]
 

Cross product. Be careful: the ^ operator has a very low priority. In consequence, it would be wise to embrace every cross product into parenthesis to avoid unpredictable results.

Definition at line 197 of file vector3.inl.

References sheep::Vector3::m_x, sheep::Vector3::m_y, and sheep::Vector3::m_z.


Generated on Tue May 11 01:31:53 2004 for toxic by doxygen 1.3.6