$search

collision_checking::Vec3f Class Reference

A class describing a three-dimensional vector. More...

#include <vec_3f.h>

List of all members.

Public Member Functions

Vec3f cross (const Vec3f &other) const
 Return the cross product with another vector.
BVH_REAL dot (const Vec3f &other) const
 Return the dot product with another vector.
bool equal (const Vec3f &other) const
 Check whether two vectors are the same in abstracted value.
BVH_REAL length () const
 Return vector length.
void negate ()
 Negate the vector.
bool normalize ()
 Normalization.
Vec3f operator* (BVH_REAL t) const
 Scale the vector by t.
Vec3f operator+ (const Vec3f &other) const
 Return a summation vector.
Vec3foperator+= (const Vec3f &other)
 Add the other vector.
Vec3f operator- (const Vec3f &other) const
 Return a substraction vector.
Vec3f operator- () const
 Return a negated vector.
Vec3foperator-= (const Vec3f &other)
 Minus the other vector.
BVH_REALoperator[] (size_t i)
BVH_REAL operator[] (size_t i) const
 Get the ith element.
Vec3fsetValue (BVH_REAL x, BVH_REAL y, BVH_REAL z)
 Set the vector using new values.
BVH_REAL sqrLength () const
 Return vector square length.
 Vec3f (BVH_REAL x, BVH_REAL y, BVH_REAL z)
 Vec3f (const BVH_REAL *v)
 Vec3f (const Vec3f &other)
 Vec3f ()

Public Attributes

BVH_REAL v_ [3]
 vector data

Static Private Attributes

static const BVH_REAL EPSILON = 1e-11
 Tolerance for comparision.

Detailed Description

A class describing a three-dimensional vector.

Definition at line 267 of file vec_3f.h.


Constructor & Destructor Documentation

collision_checking::Vec3f::Vec3f (  )  [inline]

Definition at line 273 of file vec_3f.h.

collision_checking::Vec3f::Vec3f ( const Vec3f other  )  [inline]

Definition at line 275 of file vec_3f.h.

collision_checking::Vec3f::Vec3f ( const BVH_REAL v  )  [inline]

Definition at line 282 of file vec_3f.h.

collision_checking::Vec3f::Vec3f ( BVH_REAL  x,
BVH_REAL  y,
BVH_REAL  z 
) [inline]

Definition at line 289 of file vec_3f.h.


Member Function Documentation

Vec3f collision_checking::Vec3f::cross ( const Vec3f other  )  const [inline]

Return the cross product with another vector.

Definition at line 360 of file vec_3f.h.

BVH_REAL collision_checking::Vec3f::dot ( const Vec3f other  )  const [inline]

Return the dot product with another vector.

Definition at line 368 of file vec_3f.h.

bool collision_checking::Vec3f::equal ( const Vec3f other  )  const [inline]

Check whether two vectors are the same in abstracted value.

Definition at line 408 of file vec_3f.h.

BVH_REAL collision_checking::Vec3f::length (  )  const [inline]

Return vector length.

Definition at line 389 of file vec_3f.h.

void collision_checking::Vec3f::negate (  )  [inline]

Negate the vector.

Definition at line 327 of file vec_3f.h.

bool collision_checking::Vec3f::normalize (  )  [inline]

Normalization.

Definition at line 374 of file vec_3f.h.

Vec3f collision_checking::Vec3f::operator* ( BVH_REAL  t  )  const [inline]

Scale the vector by t.

Definition at line 354 of file vec_3f.h.

Vec3f collision_checking::Vec3f::operator+ ( const Vec3f other  )  const [inline]

Return a summation vector.

Definition at line 342 of file vec_3f.h.

Vec3f& collision_checking::Vec3f::operator+= ( const Vec3f other  )  [inline]

Add the other vector.

Definition at line 308 of file vec_3f.h.

Vec3f collision_checking::Vec3f::operator- ( const Vec3f other  )  const [inline]

Return a substraction vector.

Definition at line 348 of file vec_3f.h.

Vec3f collision_checking::Vec3f::operator- ( void   )  const [inline]

Return a negated vector.

Definition at line 335 of file vec_3f.h.

Vec3f& collision_checking::Vec3f::operator-= ( const Vec3f other  )  [inline]

Minus the other vector.

Definition at line 318 of file vec_3f.h.

BVH_REAL& collision_checking::Vec3f::operator[] ( size_t  i  )  [inline]

Definition at line 302 of file vec_3f.h.

BVH_REAL collision_checking::Vec3f::operator[] ( size_t  i  )  const [inline]

Get the ith element.

Definition at line 297 of file vec_3f.h.

Vec3f& collision_checking::Vec3f::setValue ( BVH_REAL  x,
BVH_REAL  y,
BVH_REAL  z 
) [inline]

Set the vector using new values.

Definition at line 401 of file vec_3f.h.

BVH_REAL collision_checking::Vec3f::sqrLength (  )  const [inline]

Return vector square length.

Definition at line 395 of file vec_3f.h.


Member Data Documentation

const BVH_REAL collision_checking::Vec3f::EPSILON = 1e-11 [static, private]

Tolerance for comparision.

Definition at line 415 of file vec_3f.h.

vector data

Definition at line 271 of file vec_3f.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


collision_checking
Author(s): Jia Pan, Dinesh Manocha (UNC, Chapel Hill)
autogenerated on Fri Mar 1 14:57:01 2013