#include <u2d_point.hpp>
Create point at origin of coordinates system.
U2dPoint::U2dPoint |
( |
const U2dPoint & |
p | ) |
|
|
inline |
Create point as a copy of given one.
U2dPoint::U2dPoint |
( |
double |
x, |
|
|
double |
z |
|
) |
| |
|
inline |
Create point with given coordinates.
static int U2dPoint::getNeighbour |
( |
const U2dPoint & |
p, |
|
|
std::vector< U2dPoint * > & |
p_ar |
|
) |
| |
|
static |
Return index of the point (among p_ar), nearest to the point p
double U2dPoint::getX |
( |
| ) |
const |
|
inline |
double U2dPoint::getZ |
( |
| ) |
const |
|
inline |
bool U2dPoint::operator!= |
( |
const U2dPoint & |
| ) |
const |
Returns false, if all coordinates of points are equal (with precision U3D_EPSILON - see u3d_defines.hpp)
Assign the point coordinates from another one.
bool U2dPoint::operator== |
( |
const U2dPoint & |
| ) |
const |
Returns true, if all coordinates of points are equal (with precision U3D_EPSILON - see u3d_defines.hpp)
Calculate distance between two points
void U2dPoint::setX |
( |
double |
x | ) |
|
|
inline |
Set x coordinate separately.
void U2dPoint::setXZ |
( |
double |
x, |
|
|
double |
z |
|
) |
| |
|
inline |
void U2dPoint::setZ |
( |
double |
z | ) |
|
|
inline |
Set z coordinate separately.
Cartesian coordinates of the point.
The documentation for this class was generated from the following file:
- /net/opt/univers/ubp-i-15.3-centos7-x64.urij/include/mth/u2d_point.hpp