17 using std::runtime_error;
38 rgb[0] = 255;
rgb[1] = 255;
rgb[2] = 255;};
39 inline Point(
const double *
p,
const char *c) {
x = p[0];
y = p[1];
z = p[2];
rgb[0] = c[0];
rgb[1] = c[1];
rgb[2] = c[2];};
44 inline Point(
const double _x,
const double _y,
const double _z) {
x = _x;
y = _y;
z = _z; };
45 inline Point(
const double _x,
const double _y,
const double _z,
const char _r,
const char _g,
const char _b) {
x = _x;
y = _y;
z = _z;
rgb[0] = _r;
rgb[1] = _g;
rgb[2] = _b;};
49 res.
x = X.
y * Y.
z - X.
z * Y.
y;
50 res.
y = X.
z * Y.
x - X.
x * Y.
z;
51 res.
z = X.
x * Y.
y - X.
y * Y.
x;
56 double l = sqrt(p.
x*p.
x + p.
y*p.
y + p.
z*p.
z);
92 inline void transform(
const double alignxf[16]);
Point & operator+=(const Point &p)
Point operator*(const double &v, const Point &p)
friend ostream & operator<<(ostream &os, const Point &p)
static Point norm(const Point &p)
Representation of a point in 3D space.
Point(const double *p, const char *c)
double tan_theta
tang in cylindrical coordinates for veloscan
double z
z coordinate in 3D space
Point(const double _x, const double _y, const double _z)
Point operator-(const Point &p) const
void transform(const double alignxf[16])
Point operator+(const Point &p) const
double distance(const Point &p)
double x
x coordinate in 3D space
Point(const double _x, const double _y, const double _z, const char _r, const char _g, const char _b)
static Point cross(const Point &X, const Point &Y)
double y
y coordinate in 3D space
Point & operator-=(const Point &p)
friend istream & operator>>(istream &is, Point &p)