collision_checking::Vec3f Class Reference
A class describing a three-dimensional vector.
More...
#include <vec_3f.h>
List of all members.
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] |
collision_checking::Vec3f::Vec3f |
( |
const Vec3f & |
other |
) |
[inline] |
collision_checking::Vec3f::Vec3f |
( |
const BVH_REAL * |
v |
) |
[inline] |
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] |
BVH_REAL collision_checking::Vec3f::operator[] |
( |
size_t |
i |
) |
const [inline] |
Get the ith element.
Definition at line 297 of file vec_3f.h.
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
Tolerance for comparision.
Definition at line 415 of file vec_3f.h.
The documentation for this class was generated from the following files: