#include <vecmath.h>
|
double | x |
|
double | y |
|
double | z |
|
Definition at line 321 of file vecmath.h.
◆ Point3() [1/3]
◆ Point3() [2/3]
EMAN::Point3::Point3 |
( |
const Point3 & |
p | ) |
|
|
inline |
Definition at line 324 of file vecmath.h.
324:
x(p[0]),
y(p[1]),
z(p[2]) {}
◆ Point3() [3/3]
EMAN::Point3::Point3 |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z |
|
) |
| |
|
inline |
◆ approxEqual()
bool EMAN::Point3::approxEqual |
( |
const Point3 & |
p, |
|
|
double |
eps = 1e-12 |
|
) |
| const |
|
inline |
◆ distanceFromOrigin()
double EMAN::Point3::distanceFromOrigin |
( |
| ) |
const |
|
inline |
Definition at line 374 of file vecmath.h.
EMData * sqrt() const
return square root of current image
References sqrt(), x, y, and z.
◆ distanceFromOriginSquared()
double EMAN::Point3::distanceFromOriginSquared |
( |
| ) |
const |
|
inline |
◆ distanceTo()
double EMAN::Point3::distanceTo |
( |
const Point3 & |
p | ) |
const |
|
inline |
Definition at line 362 of file vecmath.h.
363 return (
double)
sqrt((p[0] -
x) * (p[0] -
x) +
364 (p[1] -
y) * (p[1] -
y) +
365 (p[2] -
z) * (p[2] -
z));
References sqrt(), x, y, and z.
◆ distanceToSquared()
double EMAN::Point3::distanceToSquared |
( |
const Point3 & |
p | ) |
const |
|
inline |
Definition at line 368 of file vecmath.h.
369 return ((p[0] -
x) * (p[0] -
x) +
370 (p[1] -
y) * (p[1] -
y) +
371 (p[2] -
z) * (p[2] -
z));
References x, y, and z.
◆ operator!=()
bool EMAN::Point3::operator!= |
( |
const Point3 & |
p | ) |
const |
|
inline |
Definition at line 386 of file vecmath.h.
387 return x != p.x ||
y != p.y ||
z != p.z;
References x, y, and z.
◆ operator*=()
Point3 & EMAN::Point3::operator*= |
( |
double |
s | ) |
|
|
inline |
Definition at line 345 of file vecmath.h.
346 x *= s;
y *= s;
z *= s;
References x, y, and z.
◆ operator+()
◆ operator+=()
Definition at line 335 of file vecmath.h.
336 x += v[0];
y += v[1];
z += v[2];
References x, y, and z.
◆ operator-() [1/2]
Definition at line 350 of file vecmath.h.
351 return Vector3(
x - p.x,
y - p.y,
z - p.z);
References x, y, and z.
◆ operator-() [2/2]
◆ operator-=()
Definition at line 340 of file vecmath.h.
341 x -= v[0];
y -= v[1];
z -= v[2];
References x, y, and z.
◆ operator=()
Definition at line 327 of file vecmath.h.
328 x = a[0];
y = a[1];
z = a[2];
References x, y, and z.
◆ operator==()
bool EMAN::Point3::operator== |
( |
const Point3 & |
p | ) |
const |
|
inline |
Definition at line 382 of file vecmath.h.
383 return x == p.x &&
y == p.y &&
z == p.z;
References x, y, and z.
◆ operator[]() [1/2]
double & EMAN::Point3::operator[] |
( |
int |
n | ) |
|
|
inline |
◆ operator[]() [2/2]
const double & EMAN::Point3::operator[] |
( |
int |
n | ) |
const |
|
inline |
◆ print()
void EMAN::Point3::print |
( |
| ) |
const |
|
inline |
Definition at line 394 of file vecmath.h.
395 std::cout <<
x <<
" " <<
y <<
" " <<
z <<
"\n";
References x, y, and z.
Definition at line 399 of file vecmath.h.
Referenced by approxEqual(), distanceFromOrigin(), distanceFromOriginSquared(), distanceTo(), distanceToSquared(), operator!=(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), operator[](), and print().
Definition at line 399 of file vecmath.h.
Referenced by approxEqual(), distanceFromOrigin(), distanceFromOriginSquared(), distanceTo(), distanceToSquared(), operator!=(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), and print().
Definition at line 399 of file vecmath.h.
Referenced by approxEqual(), distanceFromOrigin(), distanceFromOriginSquared(), distanceTo(), distanceToSquared(), operator!=(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), and print().
The documentation for this class was generated from the following file: