EMAN::Vector4 Class Reference
#include <vecmath.h>
List of all members.
Detailed Description
Definition at line 592 of file vecmath.h.
Constructor & Destructor Documentation
| EMAN::Vector4::Vector4 |
( |
|
) |
[inline] |
| EMAN::Vector4::Vector4 |
( |
const Vector4 & |
v |
) |
[inline] |
| EMAN::Vector4::Vector4 |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z, |
|
|
double |
_w | |
|
) |
| | [inline] |
Member Function Documentation
Definition at line 598 of file vecmath.h.
References w, x, y, and z.
00598 {
00599 x = a[0]; y = a[1]; z = a[2]; w = a[3];
00600 return *this;
00601 }
| const double& EMAN::Vector4::operator[] |
( |
int |
n |
) |
const [inline] |
Definition at line 603 of file vecmath.h.
00603 { return ((double *) this)[n]; }
| double& EMAN::Vector4::operator[] |
( |
int |
n |
) |
[inline] |
Definition at line 604 of file vecmath.h.
00604 { return ((double *) this)[n]; }
Definition at line 606 of file vecmath.h.
References w, x, y, and z.
00606 {
00607 x += a[0]; y += a[1]; z += a[2]; w += a[3];
00608 return *this;
00609 }
Definition at line 611 of file vecmath.h.
References w, x, y, and z.
00611 {
00612 x -= a[0]; y -= a[1]; z -= a[2]; w -= a[3];
00613 return *this;
00614 }
| Vector4& EMAN::Vector4::operator*= |
( |
double |
s |
) |
[inline] |
Definition at line 616 of file vecmath.h.
References w, x, y, and z.
00616 {
00617 x *= s; y *= s; z *= s; w *= s;
00618 return *this;
00619 }
| Vector4 EMAN::Vector4::operator- |
( |
|
) |
[inline] |
| Vector4 EMAN::Vector4::operator+ |
( |
|
) |
[inline] |
Definition at line 625 of file vecmath.h.
00625 {
00626 return *this;
00627 }
| Vector4 EMAN::Vector4::operator/ |
( |
const double |
s |
) |
const [inline] |
| Vector4 EMAN::Vector4::operator* |
( |
const double |
s |
) |
const [inline] |
| double EMAN::Vector4::operator* |
( |
const Vector4 & |
v |
) |
const [inline] |
Definition at line 647 of file vecmath.h.
References w, x, y, and z.
00647 {
00648 return x * v.x + y * v.y + z * v.z + w * v.w;
00649 }
| double EMAN::Vector4::length |
( |
|
) |
const [inline] |
| double EMAN::Vector4::lengthSquared |
( |
|
) |
const [inline] |
Definition at line 655 of file vecmath.h.
References w, x, y, and z.
00655 {
00656 return x * x + y * y + z * z + w * w;
00657 }
| void EMAN::Vector4::normalize |
( |
|
) |
[inline] |
| bool EMAN::Vector4::operator== |
( |
const Vector4 & |
v |
) |
const [inline] |
Definition at line 664 of file vecmath.h.
References w, x, y, and z.
00664 {
00665 return x == v.x && y == v.y && z == v.z && w == v.w;
00666 }
| bool EMAN::Vector4::operator!= |
( |
const Vector4 & |
v |
) |
const [inline] |
Definition at line 668 of file vecmath.h.
References w, x, y, and z.
00668 {
00669 return x != v.x || y != v.y || z != v.z || w != v.w;
00670 }
| bool EMAN::Vector4::approxEqual |
( |
const Vector4 & |
v, |
|
|
double |
eps = 1e-12 | |
|
) |
| | const [inline] |
| void EMAN::Vector4::print |
( |
|
) |
const [inline] |
Definition at line 676 of file vecmath.h.
References w, x, y, and z.
00676 {
00677 std::cout << x << " " << y << " " << z << " " << w << "\n";
00678 }
Member Data Documentation
Definition at line 681 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 681 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 681 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 681 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: