#include <vecmath.h>
Definition at line 51 of file vecmath.h.
◆ ScreenVector() [1/3]
EMAN::ScreenVector::ScreenVector |
( |
| ) |
|
|
inline |
◆ ScreenVector() [2/3]
◆ ScreenVector() [3/3]
EMAN::ScreenVector::ScreenVector |
( |
int |
_x, |
|
|
int |
_y |
|
) |
| |
|
inline |
◆ length()
double EMAN::ScreenVector::length |
( |
| ) |
const |
|
inline |
Definition at line 105 of file vecmath.h.
106 return (
double)
sqrt( (
double) (
x *
x +
y *
y) );
EMData * sqrt() const
return square root of current image
References sqrt(), x, and y.
◆ lengthSquared()
int EMAN::ScreenVector::lengthSquared |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool EMAN::ScreenVector::operator!= |
( |
const ScreenVector & |
v | ) |
const |
|
inline |
Definition at line 117 of file vecmath.h.
118 return x != v.x ||
y != v.y;
References x, and y.
◆ operator*() [1/2]
ScreenVector EMAN::ScreenVector::operator* |
( |
const double |
s | ) |
const |
|
inline |
◆ operator*() [2/2]
int EMAN::ScreenVector::operator* |
( |
const ScreenVector & |
v | ) |
const |
|
inline |
Definition at line 101 of file vecmath.h.
102 return x * v.x +
y * v.y;
References x, and y.
◆ operator*=()
◆ operator+() [1/2]
◆ operator+() [2/2]
◆ operator+=()
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator-=()
◆ operator=()
◆ operator==()
bool EMAN::ScreenVector::operator== |
( |
const ScreenVector & |
v | ) |
const |
|
inline |
Definition at line 113 of file vecmath.h.
114 return x == v.x &&
y == v.y;
References x, and y.
◆ operator[]() [1/2]
int & EMAN::ScreenVector::operator[] |
( |
int |
n | ) |
|
|
inline |
◆ operator[]() [2/2]
const int & EMAN::ScreenVector::operator[] |
( |
int |
n | ) |
const |
|
inline |
◆ print()
void EMAN::ScreenVector::print |
( |
| ) |
const |
|
inline |
Definition at line 121 of file vecmath.h.
122 std::cout <<
"(" <<
x <<
", " <<
y <<
")";
References x, and y.
int EMAN::ScreenVector::x |
|
private |
Definition at line 126 of file vecmath.h.
Referenced by length(), lengthSquared(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), operator[](), and print().
int EMAN::ScreenVector::y |
|
private |
Definition at line 126 of file vecmath.h.
Referenced by length(), lengthSquared(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), and print().
The documentation for this class was generated from the following file: