#include <vecmath.h>
|
double | x |
|
double | y |
|
double | z |
|
Definition at line 202 of file vecmath.h.
◆ Vector3() [1/3]
EMAN::Vector3::Vector3 |
( |
| ) |
|
|
inline |
◆ Vector3() [2/3]
EMAN::Vector3::Vector3 |
( |
const Vector3 & |
v | ) |
|
|
inline |
Definition at line 205 of file vecmath.h.
205:
x(v[0]),
y(v[1]),
z(v[2]) {}
◆ Vector3() [3/3]
EMAN::Vector3::Vector3 |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z |
|
) |
| |
|
inline |
◆ approxEqual()
bool EMAN::Vector3::approxEqual |
( |
const Vector3 & |
v, |
|
|
double |
eps = 1e-12 |
|
) |
| const |
|
inline |
◆ length()
double EMAN::Vector3::length |
( |
| ) |
const |
|
inline |
◆ lengthSquared()
double EMAN::Vector3::lengthSquared |
( |
| ) |
const |
|
inline |
◆ normalize()
void EMAN::Vector3::normalize |
( |
| ) |
|
|
inline |
◆ operator!=()
bool EMAN::Vector3::operator!= |
( |
const Vector3 & |
v | ) |
const |
|
inline |
Definition at line 285 of file vecmath.h.
286 return x != v.x ||
y != v.y ||
z != v.z;
References x, y, and z.
◆ operator*() [1/2]
Vector3 EMAN::Vector3::operator* |
( |
const double |
s | ) |
const |
|
inline |
◆ operator*() [2/2]
double EMAN::Vector3::operator* |
( |
const Vector3 & |
v | ) |
const |
|
inline |
Definition at line 257 of file vecmath.h.
258 return x * v.x +
y * v.y +
z * v.z;
References x, y, and z.
◆ operator*=()
Vector3 & EMAN::Vector3::operator*= |
( |
double |
s | ) |
|
|
inline |
Definition at line 226 of file vecmath.h.
227 x *= s;
y *= s;
z *= s;
References x, y, and z.
◆ operator+() [1/2]
Vector3 EMAN::Vector3::operator+ |
( |
| ) |
const |
|
inline |
◆ operator+() [2/2]
◆ operator+=()
Definition at line 216 of file vecmath.h.
217 x += a[0];
y += a[1];
z += a[2];
References x, y, and z.
◆ operator-() [1/2]
Vector3 EMAN::Vector3::operator- |
( |
| ) |
const |
|
inline |
◆ operator-() [2/2]
◆ operator-=()
Definition at line 221 of file vecmath.h.
222 x -= a[0];
y -= a[1];
z -= a[2];
References x, y, and z.
◆ operator/()
Vector3 EMAN::Vector3::operator/ |
( |
const double |
s | ) |
const |
|
inline |
Definition at line 247 of file vecmath.h.
#define Assert(s)
Define Assert() function that is effective only when -DDEBUG is used.
References Assert, Vector3(), x, y, and z.
◆ operator=()
Definition at line 208 of file vecmath.h.
209 x = a[0];
y = a[1];
z = a[2];
References x, y, and z.
◆ operator==()
bool EMAN::Vector3::operator== |
( |
const Vector3 & |
v | ) |
const |
|
inline |
Definition at line 281 of file vecmath.h.
282 return x == v.x &&
y == v.y &&
z == v.z;
References x, y, and z.
◆ operator[]() [1/2]
double & EMAN::Vector3::operator[] |
( |
int |
n | ) |
|
|
inline |
◆ operator[]() [2/2]
const double & EMAN::Vector3::operator[] |
( |
int |
n | ) |
const |
|
inline |
◆ operator^()
◆ print()
void EMAN::Vector3::print |
( |
| ) |
const |
|
inline |
Definition at line 293 of file vecmath.h.
294 std::cout <<
x <<
" " <<
y <<
" " <<
z <<
"\n";
References x, y, and z.
Definition at line 298 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), operator[](), operator^(), and print().
Definition at line 298 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), operator^(), and print().
Definition at line 298 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), operator^(), and print().
The documentation for this class was generated from the following file: