SeVec3d Class Reference
A 3d point/vector class.
More...
#include <SeVec3d.h>
List of all members.
Detailed Description
A 3d point/vector class.
This class represents 3d points and vectors of doubles. In reality, this is a vector with the base point at the global origin. Why? Because you cant really add points, subtract points, and so forth -- at least mathematically.
Definition at line 27 of file SeVec3d.h.
Member Typedef Documentation
for compatibility with double array[3]
Definition at line 51 of file SeVec3d.h.
Constructor & Destructor Documentation
SeVec3d::SeVec3d |
( |
|
) |
[inline] |
SeVec3d::SeVec3d |
( |
double |
v |
) |
[inline] |
SeVec3d::SeVec3d |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z | |
|
) |
| | [inline] |
SeVec3d::SeVec3d |
( |
const double * |
v |
) |
[inline] |
SeVec3d::SeVec3d |
( |
const float * |
v |
) |
[inline] |
Member Function Documentation
double SeVec3d::angle |
( |
const SeVec3d & |
v |
) |
const [inline] |
Returns the angle in radians between the current vector and the passed in vector.
Definition at line 182 of file SeVec3d.h.
References dot(), and length().
double SeVec3d::dot |
( |
const SeVec3d & |
v |
) |
const [inline] |
const double* SeVec3d::getValue |
( |
|
) |
const [inline] |
Get coordinates as array.
Definition at line 129 of file SeVec3d.h.
References _vec.
void SeVec3d::getValue |
( |
double & |
x, |
|
|
double & |
y, |
|
|
double & |
z | |
|
) |
| | const [inline] |
double SeVec3d::length |
( |
|
) |
const [inline] |
void SeVec3d::negate |
( |
|
) |
[inline] |
void SeVec3d::normalize |
( |
|
) |
[inline] |
SeVec3d SeVec3d::normalized |
( |
|
) |
const [inline] |
SeVec3d::operator array & |
( |
|
) |
[inline] |
bool SeVec3d::operator!= |
( |
const SeVec3d & |
v |
) |
const [inline] |
Inequality comparison.
Definition at line 89 of file SeVec3d.h.
SeVec3d SeVec3d::operator* |
( |
double |
d |
) |
const [inline] |
SeVec3d& SeVec3d::operator*= |
( |
double |
d |
) |
[inline] |
Component-wise scalar multiplication.
Definition at line 65 of file SeVec3d.h.
References _vec.
Component-wise vector addition.
Definition at line 73 of file SeVec3d.h.
References _vec.
SeVec3d SeVec3d::operator- |
( |
|
) |
const [inline] |
Nondestructive unary negation - returns a new vector.
Definition at line 81 of file SeVec3d.h.
References _vec, and SeVec3d().
Component-wise vector subtraction.
Definition at line 77 of file SeVec3d.h.
References _vec.
SeVec3d SeVec3d::operator/ |
( |
double |
d |
) |
const [inline] |
Component-wise binary scalar division
Definition at line 97 of file SeVec3d.h.
SeVec3d& SeVec3d::operator/= |
( |
double |
d |
) |
[inline] |
Component-wise scalar division.
Definition at line 69 of file SeVec3d.h.
bool SeVec3d::operator== |
( |
const SeVec3d & |
v |
) |
const [inline] |
Equality comparison.
Definition at line 85 of file SeVec3d.h.
References _vec.
double SeVec3d::operator[] |
( |
int |
i |
) |
const [inline] |
Accesses indexed component of vector (const).
Definition at line 58 of file SeVec3d.h.
References _vec.
double& SeVec3d::operator[] |
( |
int |
i |
) |
[inline] |
Accesses indexed component of vector.
Definition at line 55 of file SeVec3d.h.
References _vec.
SeVec3d SeVec3d::orthogonal |
( |
|
) |
const [inline] |
SeVec3d SeVec3d::rotateBy |
( |
const SeVec3d & |
axis, |
|
|
double |
angle_ | |
|
) |
| | const [inline] |
void SeVec3d::setValue |
( |
const double * |
v |
) |
[inline] |
Set coordinates as array.
Definition at line 137 of file SeVec3d.h.
References _vec.
void SeVec3d::setValue |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z | |
|
) |
| | [inline] |
Friends And Related Function Documentation
Component-wise binary scalar multiplication.
Definition at line 101 of file SeVec3d.h.
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const SeVec3d & |
v | |
|
) |
| | [friend] |
Output a formatted string for the vector to a stream.
Definition at line 121 of file SeVec3d.h.
Member Data Documentation
Coordinates.
Definition at line 202 of file SeVec3d.h.
Referenced by cross(), dot(), getValue(), length(), negate(), operator array &(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), operator[](), orthogonal(), and setValue().
The documentation for this class was generated from the following file:
- /disk1/scratch/aselle/projects/seexpr/SeExpr/src/SeExpr/SeVec3d.h