#include <vecmath.h>
|
double | x |
|
double | y |
|
double | z |
|
double | w |
|
Definition at line 588 of file vecmath.h.
◆ Vector4() [1/3]
EMAN::Vector4::Vector4 |
( |
| ) |
|
|
inline |
◆ Vector4() [2/3]
EMAN::Vector4::Vector4 |
( |
const Vector4 & |
v | ) |
|
|
inline |
Definition at line 591 of file vecmath.h.
591:
x(v[0]),
y(v[1]),
z(v[2]),
w(v[3]) {}
◆ Vector4() [3/3]
EMAN::Vector4::Vector4 |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z, |
|
|
double |
_w |
|
) |
| |
|
inline |
◆ approxEqual()
bool EMAN::Vector4::approxEqual |
( |
const Vector4 & |
v, |
|
|
double |
eps = 1e-12 |
|
) |
| const |
|
inline |
◆ length()
double EMAN::Vector4::length |
( |
| ) |
const |
|
inline |
◆ lengthSquared()
double EMAN::Vector4::lengthSquared |
( |
| ) |
const |
|
inline |
◆ normalize()
void EMAN::Vector4::normalize |
( |
| ) |
|
|
inline |
◆ operator!=()
bool EMAN::Vector4::operator!= |
( |
const Vector4 & |
v | ) |
const |
|
inline |
Definition at line 664 of file vecmath.h.
665 return x != v.x ||
y != v.y ||
z != v.z ||
w != v.w;
References w, x, y, and z.
◆ operator*() [1/2]
Vector4 EMAN::Vector4::operator* |
( |
const double |
s | ) |
const |
|
inline |
◆ operator*() [2/2]
double EMAN::Vector4::operator* |
( |
const Vector4 & |
v | ) |
const |
|
inline |
Definition at line 643 of file vecmath.h.
644 return x * v.x +
y * v.y +
z * v.z +
w * v.w;
References w, x, y, and z.
◆ operator*=()
Vector4 & EMAN::Vector4::operator*= |
( |
double |
s | ) |
|
|
inline |
Definition at line 612 of file vecmath.h.
613 x *= s;
y *= s;
z *= s;
w *= s;
References w, x, y, and z.
◆ operator+() [1/2]
Vector4 EMAN::Vector4::operator+ |
( |
| ) |
|
|
inline |
◆ operator+() [2/2]
◆ operator+=()
Definition at line 602 of file vecmath.h.
603 x += a[0];
y += a[1];
z += a[2];
w += a[3];
References w, x, y, and z.
◆ operator-() [1/2]
Vector4 EMAN::Vector4::operator- |
( |
| ) |
|
|
inline |
◆ operator-() [2/2]
◆ operator-=()
Definition at line 607 of file vecmath.h.
608 x -= a[0];
y -= a[1];
z -= a[2];
w -= a[3];
References w, x, y, and z.
◆ operator/()
Vector4 EMAN::Vector4::operator/ |
( |
const double |
s | ) |
const |
|
inline |
Definition at line 633 of file vecmath.h.
#define Assert(s)
Define Assert() function that is effective only when -DDEBUG is used.
References Assert, Vector4(), w, x, y, and z.
◆ operator=()
Definition at line 594 of file vecmath.h.
595 x = a[0];
y = a[1];
z = a[2];
w = a[3];
References w, x, y, and z.
◆ operator==()
bool EMAN::Vector4::operator== |
( |
const Vector4 & |
v | ) |
const |
|
inline |
Definition at line 660 of file vecmath.h.
661 return x == v.x &&
y == v.y &&
z == v.z &&
w == v.w;
References w, x, y, and z.
◆ operator[]() [1/2]
double & EMAN::Vector4::operator[] |
( |
int |
n | ) |
|
|
inline |
Definition at line 600 of file vecmath.h.
600{
return ((
double *)
this)[n]; }
◆ operator[]() [2/2]
const double & EMAN::Vector4::operator[] |
( |
int |
n | ) |
const |
|
inline |
Definition at line 599 of file vecmath.h.
599{
return ((
double *)
this)[n]; }
◆ print()
void EMAN::Vector4::print |
( |
| ) |
const |
|
inline |
Definition at line 672 of file vecmath.h.
673 std::cout <<
x <<
" " <<
y <<
" " <<
z <<
" " <<
w <<
"\n";
References w, x, y, and z.
Definition at line 677 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), and print().
Definition at line 677 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), and print().
Definition at line 677 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), and print().
Definition at line 677 of file vecmath.h.
Referenced by approxEqual(), length(), lengthSquared(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator=(), operator==(), and print().
The documentation for this class was generated from the following file: